Skip to content

Commit

Permalink
Remove the leftovers of the config reload feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Oct 5, 2021
1 parent 2352d22 commit 2277a87
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/admin_extra/service_admin_extra_node.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@
-module(service_admin_extra_node).
-author('[email protected]').

-export([
commands/0,

load_config/1,
-export([commands/0,
get_cookie/0,
remove_node/1
]).
remove_node/1]).

-ignore_xref([
commands/0, load_config/1, get_cookie/0, remove_node/1
]).

-include("mongoose.hrl").
-include("ejabberd_commands.hrl").

%%%
Expand All @@ -48,18 +43,13 @@
-spec commands() -> [ejabberd_commands:cmd(), ...].
commands() ->
[
#ejabberd_commands{name = load_config, tags = [server],
desc = "Load ejabberd configuration file",
module = ?MODULE, function = load_config,
args = [{file, string}],
result = {res, rescode}},
#ejabberd_commands{name = get_cookie, tags = [erlang],
desc = "Get the Erlang cookie of this node",
module = ?MODULE, function = get_cookie,
args = [],
result = {cookie, string}},
#ejabberd_commands{name = remove_node, tags = [erlang],
desc = "Remove an ejabberd node from Mnesia clustering config",
desc = "Remove a MongooseIM node from Mnesia clustering config",
module = ?MODULE, function = remove_node,
args = [{node, string}],
result = {res, rescode}}
Expand All @@ -70,10 +60,6 @@ commands() ->
%%% Node
%%%

-spec load_config(string()) -> 'ok'.
load_config(Path) ->
ok = ejabberd_config:load_file(Path).


-spec get_cookie() -> string().
get_cookie() ->
Expand Down

0 comments on commit 2277a87

Please sign in to comment.