aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin.dtl
diff options
context:
space:
mode:
authorJay Doane <[email protected]>2015-03-31 23:08:36 -0700
committerJay Doane <[email protected]>2015-03-31 23:09:36 -0700
commit67023c0708d786f62f2f5ff50627699910416f8a (patch)
treebfe967c454bb1b6f2fb35f89778a51ad7f195f38 /priv/templates/bin.dtl
parentde6b6aa7d48a7f1a238cd9667344d3054b184470 (diff)
downloadrelx-67023c0708d786f62f2f5ff50627699910416f8a.tar.gz
relx-67023c0708d786f62f2f5ff50627699910416f8a.tar.bz2
relx-67023c0708d786f62f2f5ff50627699910416f8a.zip
Replace "-s init stop" with halt()
Diffstat (limited to 'priv/templates/bin.dtl')
-rwxr-xr-xpriv/templates/bin.dtl4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/bin.dtl b/priv/templates/bin.dtl
index 3398d63..dd11707 100755
--- a/priv/templates/bin.dtl
+++ b/priv/templates/bin.dtl
@@ -17,8 +17,8 @@ find_erts_dir() {
ROOTDIR="$RELEASE_ROOT_DIR"
else
local erl="$(which erl)"
- code="io:format(\"~s\", [code:root_dir()])."
- local erl_root="$("$erl" -noshell -eval "$code" -s init stop)"
+ code="io:format(\"~s\", [code:root_dir()]), halt()."
+ local erl_root="$("$erl" -noshell -eval "$code")"
ERTS_DIR="$erl_root/erts-$ERTS_VSN"
ROOTDIR="$erl_root"
fi