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:
jc21 authored and GitHub committed 2026-11-05 08:45:23 +10:00
commit 1dd0b8fbe8
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