We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1665f6 commit f379d4bCopy full SHA for f379d4b
ecs/bin/ejabberdctl
@@ -68,8 +68,12 @@ done
68
[ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH"
69
[ -n "$ERLANG_NODE_ARG" ] && ERLANG_NODE="$ERLANG_NODE_ARG"
70
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && S="-s"
71
-: "${EJABBERD_LOG_PATH:="$LOGS_DIR/ejabberd.log"}"
72
: "${SPOOL_DIR:="$HOME_DIR/database"}"
+: "${EJABBERD_LOG_PATH:="$LOGS_DIR/ejabberd.log"}"
73
+
74
+# backward support for old mnesia spool dir path
75
+: "${SPOOL_DIR_OLD:="$SPOOL_DIR/$ERLANG_NODE"}"
76
+[ -r "$SPOOL_DIR_OLD/schema.DAT" ] && [ ! -r "$SPOOL_DIR/schema.DAT" ] && SPOOL_DIR="$SPOOL_DIR_OLD"
77
78
[ -n "$ERLANG_COOKIE" ] && [ ! -f "$HOME"/.erlang.cookie ] && {
79
echo "$ERLANG_COOKIE" > "$HOME"/.erlang.cookie
0 commit comments