ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
fix(update): stop refresh_config dying on a missing serverkit.conf
Juan Denis28b651f85d95
diff --git a/scripts/update.sh b/scripts/update.shindex 6fda285d..da0ce115 100644--- a/scripts/update.sh+++ b/scripts/update.sh@@ -525,11 +525,14 @@ refresh_config() {return 0fi- # Recover panel domain from live nginx config.+ # Recover panel domain from live nginx config. The trailing `|| true` keeps a+ # no-match/missing-file grep (exit 1/2) from tripping `set -euo pipefail` and+ # silently killing the updater before the atomic switch — HTTP-only boxes have+ # no serverkit.conf, so this grep finds nothing.local prior_panel_domain=""prior_panel_domain=$(grep -oE '/etc/letsencrypt/live/[^/]+/' \/etc/nginx/sites-available/serverkit.conf 2>/dev/null | head -n1 | \- sed -E 's|.*/live/([^/]+)/|\1|')+ sed -E 's|.*/live/([^/]+)/|\1|' || true)[ "$prior_panel_domain" = "YOUR_DOMAIN" ] && prior_panel_domain=""if [ -f "$target/nginx/sites-available/serverkit.conf" ]; then