aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
authorartygus <[email protected]>2015-10-04 15:56:38 +0300
committerartygus <[email protected]>2015-10-04 18:57:09 +0300
commitd9898fe63a934f15d079e3355d7dd8d93208ed0d (patch)
treec63973f86c9625f9e95df635c866ab49e618132c /priv/templates/extended_bin
parent3f0a7246ab43be07e58ee802a142399dac9e6055 (diff)
downloadrelx-d9898fe63a934f15d079e3355d7dd8d93208ed0d.tar.gz
relx-d9898fe63a934f15d079e3355d7dd8d93208ed0d.tar.bz2
relx-d9898fe63a934f15d079e3355d7dd8d93208ed0d.zip
continue extended_bin script execution after VMARGS checks
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-xpriv/templates/extended_bin4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index f7955cb..7c9f159 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -121,7 +121,7 @@ if [ $RELX_REPLACE_OS_VARS ]; then
fi
# Extract the target node name from node.args
-NAME_ARG=$(egrep '^-s?name' "$VMARGS_PATH")
+NAME_ARG=$(egrep '^-s?name' "$VMARGS_PATH" || true)
if [ -z "$NAME_ARG" ]; then
echo "vm.args needs to have either -name or -sname parameter."
exit 1
@@ -134,7 +134,7 @@ NAME="$(echo "$NAME_ARG" | awk '{print $2}')"
PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/$NAME/}"
# Extract the target cookie
-COOKIE_ARG="$(grep '^-setcookie' "$VMARGS_PATH")"
+COOKIE_ARG="$(grep '^-setcookie' "$VMARGS_PATH" || true)"
if [ -z "$COOKIE_ARG" ]; then
echo "vm.args needs to have a -setcookie parameter."
exit 1