From d9898fe63a934f15d079e3355d7dd8d93208ed0d Mon Sep 17 00:00:00 2001 From: artygus Date: Sun, 4 Oct 2015 15:56:38 +0300 Subject: continue extended_bin script execution after VMARGS checks --- priv/templates/extended_bin | 4 ++-- 1 file 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 -- cgit v1.2.3