Merge pull request #1251 from progrium/nginx-restarts
Fallback to using /etc/init.d/nginx reload directly to restart nginx
This commit is contained in:
2
debian/preinst
vendored
2
debian/preinst
vendored
@@ -29,7 +29,7 @@ case "$1" in
|
|||||||
} >> $NGINX_CONF
|
} >> $NGINX_CONF
|
||||||
|
|
||||||
rm -f /etc/nginx/sites-enabled/*
|
rm -f /etc/nginx/sites-enabled/*
|
||||||
service nginx reload
|
service nginx reload || /etc/init.d/nginx reload
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user