From b629a6c58cc416f7a49aab79aaecdf72a849e314 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 9 Mar 2021 12:33:58 +0100 Subject: [PATCH] chore(scripts): fix typo for var names --- bin/emqx | 6 +++--- data/emqx_vars | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/emqx b/bin/emqx index 43cc89b44..89a1d796a 100755 --- a/bin/emqx +++ b/bin/emqx @@ -393,10 +393,10 @@ case "$1" in fi sleep 1 if relx_nodetool "ping" >/dev/null 2>&1; then - echo "$EMQX_DISCR $REL_VSN is started successfully!" + echo "$EMQX_DESCRIPTION $REL_VSN is started successfully!" exit 0 fi - done && echo "$EMQX_DISCR $REL_VSN failed to start within ${WAIT_FOR_ERLANG:-15} seconds," + done && echo "$EMQX_DESCRIPTION $REL_VSN failed to start within ${WAIT_FOR_ERLANG:-15} seconds," echo "see the output of '$0 console' for more information." echo "If you want to wait longer, set the environment variable" echo "WAIT_FOR_ERLANG to the number of seconds to wait." @@ -415,7 +415,7 @@ case "$1" in ;; restart|reboot) - echo "$EMQX_DISCR $REL_VSN is stopped: $("$RUNNER_BIN_DIR"/emqx stop)" + echo "$EMQX_DESCRIPTION $REL_VSN is stopped: $("$RUNNER_BIN_DIR"/emqx stop)" "$RUNNER_BIN_DIR"/emqx start ;; diff --git a/data/emqx_vars b/data/emqx_vars index 55fcec04d..ea566d3ee 100644 --- a/data/emqx_vars +++ b/data/emqx_vars @@ -13,10 +13,11 @@ RUNNER_LIB_DIR="{{ runner_lib_dir }}" RUNNER_ETC_DIR="{{ runner_etc_dir }}" RUNNER_DATA_DIR="{{ runner_data_dir }}" RUNNER_USER="{{ runner_user }}" -EMQX_DISCR="{{ emqx_description }}" LIB_EKKA_DIR="${RUNNER_LIB_DIR}/ekka-$(grep ekka "${RUNNER_ROOT_DIR}/releases/RELEASES" | awk -F '\"' '{print $2}')" EMQX_LICENSE_CONF='' +EMQX_DESCRIPTION="{{ emqx_description }}" + ## computed vars REL_NAME="emqx" ERTS_PATH="$RUNNER_ROOT_DIR/erts-$ERTS_VSN/bin"