Use ejabberd_config:get_version in ejabberdctl status

This commit is contained in:
Paweł Chmielowski 2018-07-09 17:11:24 +02:00
parent 90a4aafec0
commit dc6861eb73
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ process(["status"], _Version) ->
"Check for error messages: ~s~n"
"or other files in that directory.~n", [EjabberdLogPath]),
?STATUS_ERROR;
{value, {_, _, Version}} ->
print("ejabberd ~s is running in that node~n", [Version]),
{value, {_, _, _Version}} ->
print("ejabberd ~s is running in that node~n", [ejabberd_config:get_version()]),
?STATUS_SUCCESS
end;