mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Container: Apply recent ejabberdctl backward support code
This commit is contained in:
parent
78093735b7
commit
c343ef7aad
1 changed files with 4 additions and 0 deletions
4
.github/container/ejabberdctl.template
vendored
4
.github/container/ejabberdctl.template
vendored
|
@ -71,6 +71,10 @@ done
|
||||||
: "${SPOOL_DIR:="{{spool_dir}}"}"
|
: "${SPOOL_DIR:="{{spool_dir}}"}"
|
||||||
: "${EJABBERD_LOG_PATH:="$LOGS_DIR/ejabberd.log"}"
|
: "${EJABBERD_LOG_PATH:="$LOGS_DIR/ejabberd.log"}"
|
||||||
|
|
||||||
|
# backward support for old mnesia spool dir path
|
||||||
|
: "${SPOOL_DIR_OLD:="$SPOOL_DIR/$ERLANG_NODE"}"
|
||||||
|
[ -r "$SPOOL_DIR_OLD/schema.DAT" ] && [ ! -r "$SPOOL_DIR/schema.DAT" ] && SPOOL_DIR="$SPOOL_DIR_OLD"
|
||||||
|
|
||||||
# define erl parameters
|
# define erl parameters
|
||||||
ERLANG_OPTS="+K $POLL +P $ERL_PROCESSES $ERL_OPTIONS"
|
ERLANG_OPTS="+K $POLL +P $ERL_PROCESSES $ERL_OPTIONS"
|
||||||
if [ -n "$FIREWALL_WINDOW" ] ; then
|
if [ -n "$FIREWALL_WINDOW" ] ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue