fix: emqx ctl crashed when $HOME/.erlang.cookie is not available
fixes #10142
This commit is contained in:
parent
9f9d16dd48
commit
aac41ba128
5
bin/emqx
5
bin/emqx
|
@ -441,9 +441,8 @@ call_nodetool() {
|
||||||
# Control a node
|
# Control a node
|
||||||
relx_nodetool() {
|
relx_nodetool() {
|
||||||
command="$1"; shift
|
command="$1"; shift
|
||||||
ERL_FLAGS="${ERL_FLAGS:-} $EPMD_ARGS" \
|
ERL_FLAGS="${ERL_FLAGS:-} $EPMD_ARGS -setcookie $COOKIE" \
|
||||||
call_nodetool "$NAME_TYPE" "$NAME" \
|
call_nodetool "$NAME_TYPE" "$NAME" "$command" "$@"
|
||||||
-setcookie "$COOKIE" "$command" "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
call_hocon() {
|
call_hocon() {
|
||||||
|
|
Loading…
Reference in New Issue