mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Container: Link path to mnesia spool dir for backwards compatibility
The ejabberdctl script in ecs image sets mnesia spool dir as: : "${SPOOL_DIR:="$HOME_DIR/database/$ERLANG_NODE"}"
This commit is contained in:
parent
c924a47188
commit
7832a6342a
1 changed files with 2 additions and 0 deletions
2
.github/container/ejabberdctl.template
vendored
2
.github/container/ejabberdctl.template
vendored
|
@ -305,6 +305,8 @@ stop_epmd()
|
|||
# if all ok, ensure runtime directory exists and make it current directory
|
||||
check_start()
|
||||
{
|
||||
ECSIMAGE_DBPATH=$HOME/database/$ERLANG_NODE
|
||||
[ ! -d "$ECSIMAGE_DBPATH" ] && ln -s $HOME/database $HOME/database/$ERLANG_NODE
|
||||
[ -n "$ERL_DIST_PORT" ] && return
|
||||
"$EPMD" -names 2>/dev/null | grep -q " ${ERLANG_NODE%@*} " && {
|
||||
pgrep -f "$ERLANG_NODE" >/dev/null && {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue