1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

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

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;