diff options
author | Pouriya <pouriya.jahanbakhsh@gmail.com> | 2021-09-18 16:09:11 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 16:09:11 +0430 |
commit | 3eb795357ff2278fa641608f442c9800d74c9c0a (patch) | |
tree | 9592f786ad76e91b442fcf9a83cdd609ede3a9c2 /ejabberdctl.template | |
parent | ref: fix WS typos (diff) | |
parent | Fix previous commit: add forgotten endline blankspaces (diff) |
Merge branch 'processone:master' into master
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-x | ejabberdctl.template | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index bdc9a9189..4cab19977 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -10,7 +10,8 @@ INET_DIST_INTERFACE="" ERLANG_NODE=ejabberd@localhost # define default environment variables -SCRIPT_DIR=$(cd "${0%/*}" && pwd) +[ -z "$SCRIPT" ] && SCRIPT=$0 +SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd -P)" ERL="{{erl}}" IEX="{{bindir}}/iex" EPMD="{{epmd}}" |