Skip to content

Commit bd65cbe

Browse files
authored
ensure the pid is there
1 parent 2e5b64c commit bd65cbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/libs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ function post_install_nginx() {
199199
# Paths
200200
sed -i -e "s|\$REPLACE_NGINX_PATH|${NGINX_PATH}|g" /etc/init.d/nginx
201201
sed -i -e "s|\$REPLACE_NGINX_USE_PATH|${NGINX_USE_PATH}|g" /etc/init.d/nginx
202-
202+
# Touch: pid
203+
touch /run/nginx.pid
204+
chmod 0770 /run/nginx.pid
205+
203206
if [ $DISTRO_VERSION = "16.04" ] || [ $DISTRO_VERSION = "16.10" ] ; then
204207
mkdir -p /usr/lib/systemd/system/
205208
# Service file for nginx

0 commit comments

Comments
 (0)