Set SCRIPT_DIR as done by the ejabberd script generated by "rebar3 release"

This commit is contained in:
Badlop 2021-06-25 12:33:38 +02:00
parent d5adcaea61
commit 21b021d912
1 changed files with 2 additions and 1 deletions

View File

@ -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}}"