From c228b84db6e26206553d6868ff1c6af8bd1e3b50 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 14 Jan 2023 18:36:52 +0100 Subject: [PATCH] fix(log): fail fast if emqx.conf is not found in EMQX_ETC_DIR otherwise the call_hocon failure is not quite readable --- bin/emqx | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/emqx b/bin/emqx index c5bf88149..ebf10bada 100755 --- a/bin/emqx +++ b/bin/emqx @@ -456,6 +456,7 @@ if [ "$IS_ENTERPRISE" = 'yes' ]; then fi if [ "$IS_BOOT_COMMAND" = 'yes' ]; then + [ -f "$EMQX_ETC_DIR"/emqx.conf ] || die "emqx.conf is not found in $EMQX_ETC_DIR" 1 if [ "${EMQX_BOOT_CONFIGS:-}" = '' ]; then EMQX_BOOT_CONFIGS="$(call_hocon -s "$SCHEMA_MOD" -c "$EMQX_ETC_DIR"/emqx.conf multi_get "${CONF_KEYS[@]}")" ## export here so the 'console' command recursively called from