Skip to content

Commit

Permalink
Fix undesired start of epmd when calling relx_get_nodename
Browse files Browse the repository at this point in the history
  • Loading branch information
colrack authored and Carlo Carraro committed Jul 16, 2019
1 parent f6bdffc commit c11c2cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ relx_get_nodename() {
-mode interactive \
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
-eval '[_,H]=re:split(atom_to_list(node()),"@",[unicode,{return,list}]), io:format("~s~n",[H]), halt()' \
${START_EPMD} \
-noshell ${NAME_TYPE} $id
else
# running with setcookie prevents a ~/.erlang.cookie from being created
Expand All @@ -162,6 +163,7 @@ relx_get_nodename() {
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
-eval '[_,H]=re:split(atom_to_list(node()),"@",[unicode,{return,list}]), io:format("~s~n",[H]), halt()' \
-setcookie ${COOKIE} \
${START_EPMD} \
-noshell ${NAME_TYPE} $id
fi
}
Expand Down

0 comments on commit c11c2cd

Please sign in to comment.