Module: kamailio
Branch: 4.3
Commit: c8bf8199fbbc8ddfbca76a63df94bb246bb0017a
URL:
https://github.com/kamailio/kamailio/commit/c8bf8199fbbc8ddfbca76a63df94bb2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-17T13:51:53+02:00
Makefile: install-initd-centos target creates run dir
(cherry picked from commit 19b3d02c0fc4188b175d0d86e27f3c092900b10c)
---
Modified: Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/c8bf8199fbbc8ddfbca76a63df94bb2…
Patch:
https://github.com/kamailio/kamailio/commit/c8bf8199fbbc8ddfbca76a63df94bb2…
---
diff --git a/Makefile b/Makefile
index 2d28777..e89b8fc 100644
--- a/Makefile
+++ b/Makefile
@@ -997,9 +997,11 @@ install_initd_centos install-initd-centos:
-e "s#GROUP=kamailio#GROUP=$(NAME)#g" \
< pkg/kamailio/rpm/kamailio.default \
/etc/default/$(NAME)
+ mkdir -p
/var/run/$(NAME)
/usr/sbin/groupadd -r $(NAME)
/usr/sbin/useradd -r -g $(NAME) -s /bin/false -c "Kamailio Daemon" \
-d /var/run/$(NAME) $(NAME)
+ chown $(NAME):$(NAME) /var/run/$(NAME)
.PHONY: dbschema
dbschema: