From a898f6be1e8f3d79549d7e3b0e2a14a1d05dd7f6 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Wed, 24 Mar 2021 15:17:24 +0100 Subject: [PATCH] chore(scripts): boot commands also need node name and cookie --- bin/emqx | 57 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/bin/emqx b/bin/emqx index 1f2e21350..53b906d32 100755 --- a/bin/emqx +++ b/bin/emqx @@ -278,18 +278,20 @@ if [ -z "$NAME_ARG" ]; then NODENAME="${EMQX_NODE_NAME:-}" # compatible with docker entrypoint [ -z "$NODENAME" ] && [ -n "$EMQX_NAME" ] && [ -n "$EMQX_HOST" ] && NODENAME="${EMQX_NAME}@${EMQX_HOST}" - if [ -z "$NODENAME" ] && [ "$IS_BOOT_COMMAND" = 'no' ]; then - # for non-boot commands, inspect vm.