From 5d71e51985347f5e84bbb8817b59e979bc06b673 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 2 Mar 2021 15:29:44 +0100 Subject: [PATCH] fix(config): Do not allow customizing cuttlefish env override prefix We have quite a few EMQX_ prefixed variables used in bash scripts having to meta-programming bash is not quite readable --- bin/emqx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/emqx b/bin/emqx index c26c0f8fc..3d5900ef7 100755 --- a/bin/emqx +++ b/bin/emqx @@ -20,8 +20,8 @@ mkdir -p "$RUNNER_LOG_DIR" # Make sure data directory exists mkdir -p "$RUNNER_DATA_DIR" -# cuttlefish try to read environment variables starting with "EMQX_", if not specified -export CUTTLEFISH_ENV_OVERRIDE_PREFIX="${CUTTLEFISH_ENV_OVERRIDE_PREFIX:-EMQX_}" +# cuttlefish try to read environment variables starting with "EMQX_" +export CUTTLEFISH_ENV_OVERRIDE_PREFIX='EMQX_' relx_usage() { command="$1"