Module: kamailio
Branch: master
Commit: c285b16bc066ca4236ee00cf3e7fb24539fa9f2b
URL:
https://github.com/kamailio/kamailio/commit/c285b16bc066ca4236ee00cf3e7fb24…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-06-12T11:16:51+02:00
Makefile: fixed paths for init.d scripts install on debian and centos
- GH #3476
---
Modified: src/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/c285b16bc066ca4236ee00cf3e7fb24…
Patch:
https://github.com/kamailio/kamailio/commit/c285b16bc066ca4236ee00cf3e7fb24…
---
diff --git a/src/Makefile b/src/Makefile
index 46847d03cc..6c2b35b415 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -982,11 +982,11 @@ install_initd_debian install-initd-debian:
-e "s#HOMEDIR=/run/kamailio#HOMEDIR=/run/$(NAME)#g" \
-e "s#DEFAULTS=/etc/default/kamailio#DEFAULTS=/etc/default/$(NAME)#g" \
-e
"s#CFGFILE=/etc/kamailio/kamailio.cfg#CFGFILE=$(cfg_prefix)/$(cfg_dir)$(NAME).cfg#g"
\
- < pkg/kamailio/deb/debian/kamailio.init \
+ < ../pkg/kamailio/deb/debian/kamailio.init \
/etc/init.d/$(NAME)
chmod +x
/etc/init.d/$(NAME)
sed -e "s#RUN_KAMAILIO=no#RUN_KAMAILIO=yes#g" \
- < pkg/kamailio/deb/debian/kamailio.default \
+ < ../pkg/kamailio/deb/debian/kamailio.default \
/etc/default/$(NAME)
mkdir -p /run/$(NAME)
adduser --quiet --system --group --disabled-password \
@@ -1002,13 +1002,13 @@ install_initd_centos install-initd-centos:
-e "s#PID_FILE=/run/kamailio.pid#PID_FILE=/run/$(NAME).pid#g" \
-e
"s#LOCK_FILE=/var/lock/subsys/kamailio#LOCK_FILE=/var/lock/subsys/$(NAME)#g" \
-e
"s#KAMCFG=/etc/kamailio/kamailio.cfg#KAMCFG=$(cfg_prefix)/$(cfg_dir)$(NAME).cfg#g"
\
- < pkg/kamailio/rpm/kamailio.init \
+ < ../pkg/kamailio/rpm/kamailio.init \
/etc/init.d/$(NAME)
chmod +x
/etc/init.d/$(NAME)
sed -e "s#RUN_KAMAILIO=no#RUN_KAMAILIO=yes#g" \
-e "s#USER=kamailio#USER=$(NAME)#g" \
-e "s#GROUP=kamailio#GROUP=$(NAME)#g" \
- < pkg/kamailio/rpm/kamailio.default \
+ < ../pkg/kamailio/rpm/kamailio.default \
/etc/default/$(NAME)
mkdir -p /run/$(NAME)
/usr/sbin/groupadd -r $(NAME)