diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-07-14 20:27:30 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-07-14 20:27:30 +0200 |
commit | 12e537c43f6ba53853f70a87a1369356e000e8ba (patch) | |
tree | 34b5370d7552d33a8ae657772bc049adc439bd31 /src | |
parent | Don't forget to remove Lua scripts on uninstall (diff) |
Avoid "ejabberdctl status" crash
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_ctl.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl index 7914fcfba..f5d51036e 100644 --- a/src/ejabberd_ctl.erl +++ b/src/ejabberd_ctl.erl @@ -168,14 +168,14 @@ process(["status"], _Version) -> {InternalStatus, ProvidedStatus} = init:get_status(), print("The node ~p is ~p with status: ~p~n", [node(), InternalStatus, ProvidedStatus]), - case lists:keysearch(ejabberd, 1, application:which_applications()) of + case lists:keymember(ejabberd, 1, application:which_applications()) of false -> EjabberdLogPath = ejabberd_logger:get_log_path(), print("ejabberd is not running in that node~n" "Check for error messages: ~s~n" "or other files in that directory.~n", [EjabberdLogPath]), ?STATUS_ERROR; - {value, {_, _, _Version}} -> + true -> print("ejabberd ~s is running in that node~n", [ejabberd_config:get_version()]), ?STATUS_SUCCESS end; |