Update Nginx configuration management in termix.sh to remove old service files and restart Nginx

This commit is contained in:
MickLesk
2026-05-12 21:19:49 +02:00
parent 757acde352
commit 9aee7bcbf4

View File

@@ -206,7 +206,10 @@ EOF
sed -i 's|/app/nginx|/opt/termix/nginx|g' /etc/nginx/nginx.conf
sed -i 's|listen ${PORT};|listen 80;|g' /etc/nginx/nginx.conf
nginx -t && systemctl reload nginx
rm -f /etc/systemd/system/nginx.service.d/pidfile.conf
rm -f /etc/tmpfiles.d/nginx-termix.conf
systemctl daemon-reload
nginx -t && systemctl restart nginx
msg_ok "Updated Nginx Configuration"
else
msg_warn "Nginx configuration not updated. If Termix doesn't work, restore from backup or update manually."