fix(log): fail fast if emqx.conf is not found in EMQX_ETC_DIR

otherwise the call_hocon failure is not quite readable
This commit is contained in:
Zaiming (Stone) Shi 2023-01-14 18:36:52 +01:00
parent 91c5a89985
commit c228b84db6
1 changed files with 1 additions and 0 deletions

View File

@ -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