mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-04 01:03:00 +02:00
Nginx Proxy Manager: fix openresty restart by setting user root before reload
This commit is contained in:
@@ -92,6 +92,7 @@ ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;'
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
|
||||
systemctl daemon-reload
|
||||
systemctl unmask openresty 2>/dev/null || true
|
||||
systemctl restart openresty
|
||||
|
||||
Reference in New Issue
Block a user