mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/mod_configure.erl: Update calls from ctl to
commands (EJAB-694) * src/web/ejabberd_web_admin.erl: Likewise SVN Revision: 1640
This commit is contained in:
parent
3bfe585364
commit
04981b5e44
@ -1,5 +1,9 @@
|
||||
2008-10-12 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/mod_configure.erl: Update calls from ctl to
|
||||
commands (EJAB-694)
|
||||
* src/web/ejabberd_web_admin.erl: Likewise
|
||||
|
||||
* src/ejabberd_sm.erl: Update from ctl to commands (EJAB-694)
|
||||
* src/ejabberd_s2s.erl: Likewise
|
||||
|
||||
|
@ -1416,7 +1416,7 @@ set_form(_From, _Host, ["running nodes", ENode, "backup", "textfile"], _Lang, XD
|
||||
false ->
|
||||
{error, ?ERR_BAD_REQUEST};
|
||||
{value, {_, [String]}} ->
|
||||
case rpc:call(Node, ejabberd_ctl, dump_to_textfile, [String]) of
|
||||
case rpc:call(Node, ejabberd_admin, dump_to_textfile, [String]) of
|
||||
{badrpc, _Reason} ->
|
||||
{error, ?ERR_INTERNAL_SERVER_ERROR};
|
||||
{error, _Reason} ->
|
||||
|
@ -2022,7 +2022,7 @@ node_backup_parse_query(Node, Query) ->
|
||||
rpc:call(Node, mnesia,
|
||||
install_fallback, [Path]);
|
||||
"dump" ->
|
||||
rpc:call(Node, ejabberd_ctl,
|
||||
rpc:call(Node, ejabberd_admin,
|
||||
dump_to_textfile, [Path]);
|
||||
"load" ->
|
||||
rpc:call(Node, mnesia,
|
||||
@ -2087,7 +2087,7 @@ node_ports_to_xhtml(Ports, Lang) ->
|
||||
|
||||
node_ports_parse_query(Node, Ports, Query) ->
|
||||
lists:foreach(
|
||||
fun({Port, _Module1, _Opts1}) ->
|
||||
fun({Port, Module1, _Opts1}) ->
|
||||
SPort = integer_to_list(Port),
|
||||
case lists:keysearch("add" ++ SPort, 1, Query) of
|
||||
{value, _} ->
|
||||
@ -2097,13 +2097,13 @@ node_ports_parse_query(Node, Ports, Query) ->
|
||||
Module = list_to_atom(SModule),
|
||||
{ok, Tokens, _} = erl_scan:string(SOpts ++ "."),
|
||||
{ok, Opts} = erl_parse:parse_term(Tokens),
|
||||
rpc:call(Node, ejabberd_listener, delete_listener, [Port]),
|
||||
rpc:call(Node, ejabberd_listener, delete_listener, [Port, Module]),
|
||||
rpc:call(Node, ejabberd_listener, add_listener, [Port, Module, Opts]),
|
||||
throw(submitted);
|
||||
_ ->
|
||||
case lists:keysearch("delete" ++ SPort, 1, Query) of
|
||||
{value, _} ->
|
||||
rpc:call(Node, ejabberd_listener, delete_listener, [Port]),
|
||||
rpc:call(Node, ejabberd_listener, delete_listener, [Port, Module1]),
|
||||
throw(submitted);
|
||||
_ ->
|
||||
ok
|
||||
|
Loading…
Reference in New Issue
Block a user