chore: delete plugins related configuration

This commit is contained in:
Turtle 2021-07-02 17:45:18 +08:00 committed by turtleDeng
parent 5ae8cd2fa3
commit 24292f4f4e
5 changed files with 7 additions and 23 deletions

View File

@ -1,4 +1,4 @@
## EMQ X Configuration 4.3
## EMQ X Configuration 5.0
##--------------------------------------------------------------------
## Cluster
@ -2318,16 +2318,6 @@ listener.quic.external {
## Plugins
##-------------------------------------------------------------------
plugins: {
## The etc dir for plugins' config.
##
## Value: Folder
etc_dir: "{{ platform_etc_dir }}/plugins/"
## The file to store loaded plugin names.
##
## Value: File
loaded_file: "{{ platform_data_dir }}/loaded_plugins"
## The directory of extension plugins.
##
## Value: File

View File

@ -254,15 +254,11 @@ reload_config(ConfFile) ->
emqx_feature() ->
[ emqx_authn
[ emqx_resource
, emqx_authn
, emqx_authz
, observer_cli
, emqx_http_lib
, emqx_resource
, emqx_connector
, emqx_data_bridge
, emqx_rule_engine
, emqx_rule_actions
, emqx_bridge_mqtt
, emqx_modules
, emqx_management

View File

@ -455,9 +455,7 @@ fields("rule") ->
[ {"$id", t(string())}];
fields("plugins") ->
[ {"etc_dir", t(string(), "emqx.plugins_etc_dir", undefined)}
, {"loaded_file", t(string(), "emqx.plugins_loaded_file", undefined)}
, {"expand_plugins_dir", t(string(), "emqx.expand_plugins_dir", undefined)}
[ {"expand_plugins_dir", t(string(), "emqx.expand_plugins_dir", undefined)}
];
fields("broker") ->

View File

@ -247,12 +247,12 @@ relx_apps(ReleaseType) ->
, {mnesia, load}
, {ekka, load}
, {emqx_plugin_libs, load}
, emqx_authn
, emqx_authz
, observer_cli
, emqx_http_lib
, emqx_resource
, emqx_connector
, emqx_authn
, emqx_authz
, emqx_data_bridge
, emqx_rule_engine
, emqx_rule_actions

View File

@ -28,7 +28,7 @@ main(_) ->
case filelib:is_regular(Filename) of
true ->
{ok, Bin1} = file:read_file(Filename),
<<Acc/binary, "\r\n", Bin1/binary>>;
[Acc, io_lib:nl(), Bin1];
false -> Acc
end
end