Kaynağa Gözat

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

fixes #10142
Ivan Dyachkov 3 yıl önce
ebeveyn
işleme
aac41ba128
1 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  1. 2 3
      bin/emqx

+ 2 - 3
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() {