Skip to content

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.

Avoid failing when no upstreams found in update script

Juan Denis0e516defcd25
diff --git a/scripts/update.sh b/scripts/update.sh
index 2778c745..d4e59af8 100644
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -397,7 +397,7 @@ selinux_label_dist() {
discover_app_upstreams() {
[ -d "$APP_LOCATIONS_DIR" ] || return 0
grep -rhoE 'proxy_pass[[:space:]]+https?://127\.0\.0\.1:[0-9]+' "$APP_LOCATIONS_DIR" 2>/dev/null \
- | grep -oE '127\.0\.0\.1:[0-9]+' | sort -u
+ | grep -oE '127\.0\.0\.1:[0-9]+' | sort -u || true
}
# Probe each upstream on stdin; emit "host:port up" / "host:port down". "up" means