Merge pull request #10144 from id/fix-no-default-cookie-in-docker

fix: ensure cookie for emqx ctl
This commit is contained in:
Ivan Dyachkov 2023-03-15 15:44:51 +00:00 committed by GitHub
commit f5a756a7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 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() {

View File

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