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

pull/3634/head
Badlop 2 years ago
parent d5adcaea61
commit 21b021d912

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

Loading…
Cancel
Save