Skip to content

Commit

Permalink
ejabberdctl: If ERLANG_NODE lacks host, add hostname (#4288)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Oct 11, 2024
1 parent 859ba3e commit 7f8519c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ejabberdctl.template
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ done
# shellcheck source=ejabberdctl.cfg.example
[ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH"
[ -n "$ERLANG_NODE_ARG" ] && ERLANG_NODE="$ERLANG_NODE_ARG"
[ "$ERLANG_NODE" = "${ERLANG_NODE%@*}" ] && ERLANG_NODE="$ERLANG_NODE@$(hostname -s)"
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && S="-s"
: "${SPOOL_DIR:="{{spool_dir}}"}"
: "${EJABBERD_LOG_PATH:="$LOGS_DIR/ejabberd.log"}"
Expand Down

0 comments on commit 7f8519c

Please sign in to comment.