From 3df4c8c57ee0428a7bc6d4ed71bf40c134638dd0 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Mon, 25 Jul 2022 10:09:28 +0800 Subject: [PATCH] chore: conf check cli notes include conf result --- bin/emqx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/emqx b/bin/emqx index 503e7059e..ec5de13b8 100755 --- a/bin/emqx +++ b/bin/emqx @@ -836,7 +836,12 @@ case "$1" in ;; check_conf) generate_config "check_only" - echo "$RUNNER_ETC_DIR/emqx.conf is ok" + INCLUDE_CONFS=$(< "$RUNNER_ETC_DIR/emqx.conf" grep "include" |awk '{print $2}'|xargs) + if [ "$INCLUDE_CONFS" == "" ]; then + echo "$RUNNER_ETC_DIR/emqx.conf is ok" + else + echo "$RUNNER_ETC_DIR/emqx.conf(include $INCLUDE_CONFS) is ok" + fi ;; ctl)