fix: emqx ctl crashed when $HOME/.erlang.cookie is not available

fixes #10142
This commit is contained in:
Ivan Dyachkov 2023-03-15 11:35:13 +01:00
parent 9f9d16dd48
commit aac41ba128
1 changed files with 2 additions and 3 deletions

View File

@ -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() {