fix(nginxproxymanager): add missing systemctl daemon-reload before enable

Without daemon-reload, systemd doesn't know about the new
openresty.service unit file, causing enable --now to fail.
This commit is contained in:
MickLesk
2026-03-21 19:12:04 +01:00
parent 7fec6ed156
commit 74007d3f72

View File

@@ -188,6 +188,7 @@ msg_ok "Created Service"
msg_info "Starting Services"
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
sed -r -i 's/^([[:space:]]*)su npm npm/\1#su npm npm/g;' /etc/logrotate.d/nginx-proxy-manager
systemctl daemon-reload
systemctl enable -q --now openresty
systemctl enable -q --now npm
systemctl restart openresty