Merge pull request #6086 from zmstone/fix-bin-emqx-mnesia-dir

fix(bin/emqx): mnesia dir name after node
This commit is contained in:
Zaiming (Stone) Shi 2021-11-08 17:15:49 +01:00 committed by GitHub
commit 8c89faa283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
*@*)