fix(bin/emqx): ensure log dir is created by runner user

This commit is contained in:
Zaiming (Stone) Shi 2022-09-15 09:56:15 +02:00 committed by Zhongwen Deng
parent 6991b42f14
commit f272495b8e
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,6 @@ REL_DIR="$RUNNER_ROOT_DIR/releases/$REL_VSN"
WHOAMI=$(whoami) WHOAMI=$(whoami)
# Make sure log directory exists
mkdir -p "$RUNNER_LOG_DIR"
# hocon try to read environment variables starting with "EMQX_" # hocon try to read environment variables starting with "EMQX_"
export HOCON_ENV_OVERRIDE_PREFIX='EMQX_' export HOCON_ENV_OVERRIDE_PREFIX='EMQX_'
@ -262,6 +259,9 @@ if [ "$ES" -ne 0 ]; then
exit $ES exit $ES
fi fi
# Make sure log directory exists
mkdir -p "$RUNNER_LOG_DIR"
COMPATIBILITY_CHECK=' COMPATIBILITY_CHECK='
io:format("BEAM_OK~n", []), io:format("BEAM_OK~n", []),
try try