From 9aee7bcbf4dc35705120a7bc7fb68668286b39d0 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 12 May 2026 21:19:49 +0200 Subject: [PATCH] Update Nginx configuration management in termix.sh to remove old service files and restart Nginx --- ct/termix.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/termix.sh b/ct/termix.sh index ec410befb..e104dd61d 100644 --- a/ct/termix.sh +++ b/ct/termix.sh @@ -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."