diff --git a/bin/emqx b/bin/emqx index 4699bf880..60251ed5d 100755 --- a/bin/emqx +++ b/bin/emqx @@ -747,7 +747,11 @@ relx_start_command() { # Function to check configs without generating them check_config() { ## this command checks the configs without generating any files - call_hocon -v -s "$SCHEMA_MOD" -c "$EMQX_ETC_DIR"/emqx.conf check_schema + call_hocon -v \ + -s "$SCHEMA_MOD" \ + -c "$DATA_DIR"/configs/cluster.hocon \ + -c "$EMQX_ETC_DIR"/emqx.conf \ + check_schema } # Function to generate app.config and vm.args @@ -763,11 +767,19 @@ generate_config() { local NOW_TIME NOW_TIME="$(date +'%Y.%m.%d.%H.%M.%S')" - ## this command populates two files: app.