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

make-installers: Don't edit too much

The init script and systemd units don't refer to "/opt/ejabberd", and
ejabberdctl doesn't refer to "/opt/ejabberd-$version".

Fixes #4258.
This commit is contained in:
Holger Weiss 2024-07-17 13:33:46 +02:00
parent af99799e8a
commit 11055f61a6

View File

@ -247,7 +247,6 @@ create_setup_script()
if [ "\$code_dir" != '$default_code_dir' ] if [ "\$code_dir" != '$default_code_dir' ]
then then
sed -i "s|$default_code_dir|\$code_dir|g" \ sed -i "s|$default_code_dir|\$code_dir|g" \
"\$code_dir/bin/${rel_name}ctl" \
"\$code_dir/bin/$rel_name.init" \ "\$code_dir/bin/$rel_name.init" \
"\$code_dir/bin/$rel_name.service" "\$code_dir/bin/$rel_name.service"
fi fi
@ -255,8 +254,6 @@ create_setup_script()
then then
sed -i "s|$default_data_dir|\$data_dir|g" \ sed -i "s|$default_data_dir|\$data_dir|g" \
"\$code_dir/bin/${rel_name}ctl" \ "\$code_dir/bin/${rel_name}ctl" \
"\$code_dir/bin/$rel_name.init" \
"\$code_dir/bin/$rel_name.service" \
"\$data_dir/conf/$rel_name.yml" \ "\$data_dir/conf/$rel_name.yml" \
"\$data_dir/conf/${rel_name}ctl.cfg" "\$data_dir/conf/${rel_name}ctl.cfg"
fi fi