Skip to content

Commit

Permalink
No need to introduce ERLX_OVERRIDE_COOKIE, as the COOKIE variable is …
Browse files Browse the repository at this point in the history
…already taken into account. Yet it was shadowed if any -setcookie was set on the command-line, which is not the case anymore.
  • Loading branch information
Olivier-Boudeville committed Aug 11, 2020
1 parent d1bca5e commit 155a968
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,7 @@ fi

# Extract the target cookie
# Do this before relx_get_nodename so we can use it and not create a ~/.erlang.cookie
if [ -n "$ERLX_OVERRIDE_COOKIE" ]; then
COOKIE="$ERLX_OVERRIDE_COOKIE"
else
if [ -z "$COOKIE" ]; then
COOKIE_ARG="$(grep '^-setcookie' "$VMARGS_PATH" || true)"
DEFAULT_COOKIE_FILE="$HOME/.erlang.cookie"
if [ -z "$COOKIE_ARG" ]; then
Expand Down

0 comments on commit 155a968

Please sign in to comment.