Use ejabberd_config:get_version in ejabberdctl status
This commit is contained in:
parent
90a4aafec0
commit
dc6861eb73
|
@ -175,8 +175,8 @@ process(["status"], _Version) ->
|
||||||
"Check for error messages: ~s~n"
|
"Check for error messages: ~s~n"
|
||||||
"or other files in that directory.~n", [EjabberdLogPath]),
|
"or other files in that directory.~n", [EjabberdLogPath]),
|
||||||
?STATUS_ERROR;
|
?STATUS_ERROR;
|
||||||
{value, {_, _, Version}} ->
|
{value, {_, _, _Version}} ->
|
||||||
print("ejabberd ~s is running in that node~n", [Version]),
|
print("ejabberd ~s is running in that node~n", [ejabberd_config:get_version()]),
|
||||||
?STATUS_SUCCESS
|
?STATUS_SUCCESS
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue