25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Only provide Relx start script in dev profile

That script serves a similar purpose to ejabberdctl to start ejabberd,
but we can't guarantee it is completely equivalent to ejabberdctl.
The prod profile must provide only the well-known script.
The test profile provides the Relx script so we can experiment with it.
This commit is contained in:
Badlop 2021-12-23 13:30:44 +01:00
parent aaa053829f
commit 66bb4cbfa9

View File

@ -178,7 +178,6 @@
{sys_config, "./rel/sys.config"}, {sys_config, "./rel/sys.config"},
{vm_args, "./rel/vm.args"}, {vm_args, "./rel/vm.args"},
{overlay_vars, "vars.config"}, {overlay_vars, "vars.config"},
{extended_start_script, true},
{overlay, [{mkdir, "var/log/ejabberd"}, {overlay, [{mkdir, "var/log/ejabberd"},
{mkdir, "var/lib/ejabberd"}, {mkdir, "var/lib/ejabberd"},
{mkdir, "etc/ejabberd"}, {mkdir, "etc/ejabberd"},
@ -193,6 +192,7 @@
{dev_mode, false}, {dev_mode, false},
{include_erts, true}, {include_erts, true},
{include_src, true}, {include_src, true},
{generate_start_script, false},
{overlay, [{copy, "sql/*", "lib/ejabberd-\{\{release_version\}\}/priv/sql/"}, {overlay, [{copy, "sql/*", "lib/ejabberd-\{\{release_version\}\}/priv/sql/"},
{copy, "ejabberdctl.cfg.example", "etc/ejabberd/ejabberdctl.cfg"}, {copy, "ejabberdctl.cfg.example", "etc/ejabberd/ejabberdctl.cfg"},
{copy, "ejabberd.yml.example", "etc/ejabberd/ejabberd.yml"}]}]}]}, {copy, "ejabberd.yml.example", "etc/ejabberd/ejabberd.yml"}]}]}]},
@ -201,6 +201,8 @@
{dev_mode, true}, {dev_mode, true},
{include_erts, true}, {include_erts, true},
{include_src, false}, {include_src, false},
{generate_start_script, true},
{extended_start_script, true},
{overlay, [{copy, "ejabberdctl.cfg.example", "etc/ejabberd/ejabberdctl.cfg.example"}, {overlay, [{copy, "ejabberdctl.cfg.example", "etc/ejabberd/ejabberdctl.cfg.example"},
{copy, "ejabberd.yml.example", "etc/ejabberd/ejabberd.yml.example"}, {copy, "ejabberd.yml.example", "etc/ejabberd/ejabberd.yml.example"},
{copy, "test/ejabberd_SUITE_data/ca.pem", "etc/ejabberd/"}, {copy, "test/ejabberd_SUITE_data/ca.pem", "etc/ejabberd/"},