Module: kamailio
Branch: master
Commit: 19b3d02c0fc4188b175d0d86e27f3c092900b10c
URL:
https://github.com/kamailio/kamailio/commit/19b3d02c0fc4188b175d0d86e27f3c0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-14T22:29:55+02:00
Makefile: install-initd-centos target creates run dir
---
Modified: Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/19b3d02c0fc4188b175d0d86e27f3c0…
Patch:
https://github.com/kamailio/kamailio/commit/19b3d02c0fc4188b175d0d86e27f3c0…
---
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: