mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-10 12:28:28 +00:00
Merge pull request #5989 from Rip-07/fix/5964-stale-nginx-pid
fix: remove stale nginx pid file before starting nginx
This commit is contained in:
1 file changed
+4
@@ -39,3 +39,7 @@ touch /var/log/nginx/error.log || true
|
||||
chmod 777 /var/log/nginx/error.log || true
|
||||
chmod -R 777 /var/cache/nginx || true
|
||||
chmod 644 /etc/logrotate.d/nginx-proxy-manager
|
||||
|
||||
# nginx has not been started yet, so any pid file here is stale. Remove it,
|
||||
# otherwise a pid file owned by another user stops nginx starting as PUID:PGID
|
||||
rm -f /run/nginx/nginx.pid
|
||||
Reference in new issue
Block a user