fix: node.config_files type is hocon:array(string()))
This commit is contained in:
parent
c9f0355f5a
commit
1fe0061123
|
@ -408,7 +408,9 @@ catch_call(F) ->
|
|||
C:E:S ->
|
||||
{crashed, {C, E, S}}
|
||||
end.
|
||||
force_set_config_file_paths(emqx_conf, Paths) ->
|
||||
force_set_config_file_paths(emqx_conf, [Path] = Paths) ->
|
||||
Bin = iolist_to_binary(io_lib:format("node.config_files = [~p]", [Path])),
|
||||
ok = file:write_file(Path, Bin, [append]),
|
||||
application:set_env(emqx, config_files, Paths);
|
||||
force_set_config_file_paths(emqx, Paths) ->
|
||||
application:set_env(emqx, config_files, Paths);
|
||||
|
|
|
@ -463,7 +463,7 @@ fields("node") ->
|
|||
)},
|
||||
{"config_files",
|
||||
sc(
|
||||
list(string()),
|
||||
hoconsc:array(string()),
|
||||
#{
|
||||
mapping => "emqx.config_files",
|
||||
default => undefined,
|
||||
|
|
Loading…
Reference in New Issue