Skip to content

Commit

Permalink
Force use of nodetool if proto_dist set
Browse files Browse the repository at this point in the history
When using SSL for distribution erl_call doesn't work as it doesn't support
proto_dist, and so the extended_bin script doesn't work correctly.

Forcing use of nodetool instead of erl_call in this situation fixes the issue
  • Loading branch information
GlenWalker committed Jul 19, 2022
1 parent b5182ce commit d40fc7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,11 @@ if [ "$ERL_DIST_PORT" ]; then
fi
fi

# Force use of nodetool if proto_dist set as erl_call doesn't support proto_dist
if [ "$PROTO_DIST" ]; then
ERL_RPC=relx_nodetool
fi

# Extract the target cookie
# Do this before relx_get_nodename so we can use it and not create a ~/.erlang.cookie
if [ -n "$RELX_COOKIE" ]; then
Expand Down

0 comments on commit d40fc7a

Please sign in to comment.