From aac41ba1281a43bbbd29e7548d5c937268d44fb0 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Wed, 15 Mar 2023 11:35:13 +0100 Subject: [PATCH] fix: emqx ctl crashed when $HOME/.erlang.cookie is not available fixes #10142 --- bin/emqx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/emqx b/bin/emqx index 14f94f359..741aa3718 100755 --- a/bin/emqx +++ b/bin/emqx @@ -441,9 +441,8 @@ call_nodetool() { # Control a node relx_nodetool() { command="$1"; shift - ERL_FLAGS="${ERL_FLAGS:-} $EPMD_ARGS" \ - call_nodetool "$NAME_TYPE" "$NAME" \ - -setcookie "$COOKIE" "$command" "$@" + ERL_FLAGS="${ERL_FLAGS:-} $EPMD_ARGS -setcookie $COOKIE" \ + call_nodetool "$NAME_TYPE" "$NAME" "$command" "$@" } call_hocon() {