Merge pull request #10144 from id/fix-no-default-cookie-in-docker
fix: ensure cookie for emqx ctl
This commit is contained in:
commit
f5a756a7a8
5
bin/emqx
5
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() {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add -setcookie emulator flag when invoking emqx ctl to prevent problems with emqx cli when home directory is read only. Fixes [#10142](https://github.com/emqx/emqx/issues/10142)
|
Loading…
Reference in New Issue