1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 18:29:20 +02:00

Add observer and runtime_tools in releases when --enable-tools

When --enable-tools, include observer and runtime_tools
in the OTP releases, as they are required by "ejabberdctl etop".

With this fix, "ejabberdctl etop" works correctly when:
* rebar3 + make rel
* mix + make dev
* mix + make rel
This commit is contained in:
Badlop 2024-01-08 14:54:10 +01:00
parent eeb4be6e4b
commit a2ff5fbfdb
4 changed files with 10 additions and 3 deletions

View file

@ -6,10 +6,14 @@
{elixir, true} -> [elixir, iex, logger, mix];
_ -> []
end,
Tools = case lists:keyfind(tools, 1, Terms) of
{tools, true} -> [observer, runtime_tools]; % for `ejabberdctl etop`
_ -> []
end,
{[lists:keyfind(description, 1, Terms),
lists:keyfind(vsn, 1, Terms),
{env, [{enabled_backends, EBs}]}
], Elixirs};
], Elixirs ++ Tools};
_Err ->
{[], []}
end,