fix(bin/emqx): ensure log dir is created by runner user
This commit is contained in:
parent
6991b42f14
commit
f272495b8e
6
bin/emqx
6
bin/emqx
|
@ -24,9 +24,6 @@ REL_DIR="$RUNNER_ROOT_DIR/releases/$REL_VSN"
|
|||
|
||||
WHOAMI=$(whoami)
|
||||
|
||||
# Make sure log directory exists
|
||||
mkdir -p "$RUNNER_LOG_DIR"
|
||||
|
||||
# hocon try to read environment variables starting with "EMQX_"
|
||||
export HOCON_ENV_OVERRIDE_PREFIX='EMQX_'
|
||||
|
||||
|
@ -262,6 +259,9 @@ if [ "$ES" -ne 0 ]; then
|
|||
exit $ES
|
||||
fi
|
||||
|
||||
# Make sure log directory exists
|
||||
mkdir -p "$RUNNER_LOG_DIR"
|
||||
|
||||
COMPATIBILITY_CHECK='
|
||||
io:format("BEAM_OK~n", []),
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue