Compare commits

...

2 Commits

Author SHA1 Message Date
Max Slotov 824eae9710
Merge 3df78b2a89 into 6191d8e792 2024-10-02 22:39:09 -04:00
Max Slotov 3df78b2a89
Fix Nginx Proxy Manager logrotate user
Logs are not rotated and services freeze/die because disk is full. This happens because `npm` user/group doesn't exist and `logrotate.service` can't start.
2024-10-03 02:14:56 +03:00
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ EOF
msg_info "Starting Services" msg_info "Starting Services"
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
sed -i 's/su npm npm/su root root/g' /etc/logrotate.d/nginx-proxy-manager
sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' /opt/certbot/pyvenv.cfg sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' /opt/certbot/pyvenv.cfg
systemctl enable -q --now openresty systemctl enable -q --now openresty
systemctl enable -q --now npm systemctl enable -q --now npm