fix(bin/emqx): mnesia dir name after node

This commit is contained in:
Zaiming Shi 2021-11-08 13:34:12 +01:00
parent 74e28cc4e9
commit ee817cfa6f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,6 @@ export EMU="beam"
export PROGNAME="erl"
export LD_LIBRARY_PATH="$ERTS_DIR/lib:$LD_LIBRARY_PATH"
export ERTS_LIB_DIR="$ERTS_DIR/../lib"
MNESIA_DATA_DIR="$RUNNER_DATA_DIR/mnesia/$NAME"
# Echo to stderr on errors
echoerr() { echo "ERROR: $*" 1>&2; }
@ -374,6 +373,7 @@ fi
# force to use 'emqx' short name
[ -z "$NAME" ] && NAME='emqx'
MNESIA_DATA_DIR="$RUNNER_DATA_DIR/mnesia/$NAME"
case "$NAME" in
*@*)