Browse code

Makefile: install-initd-centos target creates run dir

Daniel-Constantin Mierla authored on 14/09/2015 20:28:57
Showing 1 changed files
... ...
@@ -997,9 +997,11 @@ install_initd_centos install-initd-centos:
997 997
 		-e "s#GROUP=kamailio#GROUP=$(NAME)#g" \
998 998
 		< pkg/kamailio/rpm/kamailio.default \
999 999
 		> /etc/default/$(NAME)
1000
+	mkdir -p /var/run/$(NAME)
1000 1001
 	/usr/sbin/groupadd -r $(NAME)
1001 1002
 	/usr/sbin/useradd -r -g $(NAME) -s /bin/false -c "Kamailio Daemon" \
1002 1003
                   -d /var/run/$(NAME) $(NAME)
1004
+	chown $(NAME):$(NAME) /var/run/$(NAME)
1003 1005
 
1004 1006
 .PHONY: dbschema
1005 1007
 dbschema: