From fd8aba6d4178560c57fe654edfb6e51429a027b3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 29 Aug 2025 13:53:32 +0200 Subject: [PATCH] ext_mod: Print module status message after installation --- src/ext_mod.erl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ext_mod.erl b/src/ext_mod.erl index ee6ca2ecd..9d9b438c6 100644 --- a/src/ext_mod.erl +++ b/src/ext_mod.erl @@ -243,6 +243,7 @@ install(Package, Config) when is_binary(Package) -> ok -> code:add_pathsz([module_ebin_dir(Module)|module_deps_dirs(Module)]), ejabberd_config_reload(Config), + maybe_print_module_status(Module), copy_commit_json(Package, Attrs), ModuleRuntime = get_runtime_module_name(Module), case erlang:function_exported(ModuleRuntime, post_install, 0) of @@ -263,6 +264,14 @@ ejabberd_config_reload(Config) when is_list(Config) -> ejabberd_config_reload(undefined) -> ejabberd_config:reload(). +maybe_print_module_status(Module) -> + case get_module_status_el(Module) of + [_, {xmlcdata, String}] -> + io:format("~ts~n", [String]); + _ -> + ok + end. + uninstall(Module) when is_atom(Module) -> uninstall(misc:atom_to_binary(Module)); uninstall(Package) when is_binary(Package) ->