diff options
author | Jay Doane <[email protected]> | 2015-03-31 23:08:36 -0700 |
---|---|---|
committer | Jay Doane <[email protected]> | 2015-03-31 23:09:36 -0700 |
commit | 67023c0708d786f62f2f5ff50627699910416f8a (patch) | |
tree | bfe967c454bb1b6f2fb35f89778a51ad7f195f38 | |
parent | de6b6aa7d48a7f1a238cd9667344d3054b184470 (diff) | |
download | relx-67023c0708d786f62f2f5ff50627699910416f8a.tar.gz relx-67023c0708d786f62f2f5ff50627699910416f8a.tar.bz2 relx-67023c0708d786f62f2f5ff50627699910416f8a.zip |
Replace "-s init stop" with halt()
-rwxr-xr-x | priv/templates/bin.dtl | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | priv/templates/extended_bin.dtl | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index 9a3ab61..b42df00 100644..100755 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -19,8 +19,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 |