25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Add 'import_prosody' command

This commit is contained in:
Evgeniy Khramtsov 2016-01-29 14:30:50 +03:00
parent 54dc2f56c6
commit d3ee2a9c18

View File

@ -201,6 +201,11 @@ get_commands_spec() ->
module = ejabberd_auth_odbc, function = convert_to_scram,
args = [{host, binary}], result = {res, rescode}},
#ejabberd_commands{name = import_prosody, tags = [mnesia, odbc, riak],
desc = "Import data from Prosody",
module = prosody2ejabberd, function = from_dir,
args = [{dir, string}], result = {res, rescode}},
#ejabberd_commands{name = convert_to_yaml, tags = [config],
desc = "Convert the input file from Erlang to YAML format",
module = ejabberd_config, function = convert_to_yaml,