mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 11:50:06 +00:00
Nginx Proxy Manager: fix openresty restart by setting user root before reload (#13500)
This commit is contained in:
parent
67f5d213c2
commit
44ddf4cfa7
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue