From 8d687e50fd103023c94dd1dedc37cbf69dead91a Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Sat, 31 Jul 2021 12:02:38 +0200 Subject: [PATCH 01/27] chore: delete EMQX_NAME and EMQX_HOST env variables --- bin/emqx | 3 --- deploy/docker/docker-entrypoint.sh | 40 ++++++++++++++---------------- 2 files changed, 18 insertions(+), 25 deletions(-) diff --git a/bin/emqx b/bin/emqx index bc1d00e35..e1ab01dac 100755 --- a/bin/emqx +++ b/bin/emqx @@ -316,12 +316,9 @@ esac ## Possible ways to configure emqx node name: ## 1. configure node.name in emqx.conf ## 2. override with environment variable EMQX_NODE_NAME -## 3. override with environment variable EMQX_NAME and EMQX_HOST (deprecated) ## Node name is either short-name (without '@'), e.g. 'emqx' ## or long name (with '@') e.g. 'emqx@example.net' or 'emqx@127.0.0.1' NAME="${EMQX_NODE_NAME:-}" -# to be backward compatible -[ -n "$EMQX_NAME" ] && [ -n "$EMQX_HOST" ] && NAME="${EMQX_NAME}@${EMQX_HOST}" if [ -z "$NAME" ]; then if [ "$IS_BOOT_COMMAND" = 'no' ]; then # for non-boot commands, inspect vm.