Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(sensor-proxy): skip prerelease versions in selfheal update check

rcourtman3594fc692ae8
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index 91e03449d8..217f62926a 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -1422,6 +1422,8 @@ except json.JSONDecodeError:
sys.exit(1)
for release in releases:
+ if release.get("prerelease"):
+ continue
tag_name = (release.get("tag_name") or "").strip()
if not tag_name or tag_name.startswith("helm-chart"):
continue
@@ -1438,7 +1440,8 @@ sys.exit(0)
fi
if [[ -z "$tag" ]]; then
- tag=$(printf '%s\n' "$response" | grep -o '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | cut -d'"' -f4 | grep -Ev '^helm-chart-' | head -n 1 || true)
+ # Fallback: use grep-based parsing, filtering out helm-chart and common prerelease patterns
+ tag=$(printf '%s\n' "$response" | grep -o '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | cut -d'"' -f4 | grep -Ev '^helm-chart-|-rc\.|-(alpha|beta|rc)[0-9]*$' | head -n 1 || true)
fi
if [[ -n "$tag" ]]; then