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.

Normalize v prefix in install.ps1 agent version check

rcourtman4421945e9b6c
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index 37528af289..56d7de28bc 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -873,7 +873,10 @@ try {
$DownloadedVersion = ""
}
-if (-not [string]::IsNullOrWhiteSpace($ServerVersion) -and -not [string]::IsNullOrWhiteSpace($DownloadedVersion) -and $DownloadedVersion -ne $ServerVersion) {
+$DownloadedVersionNormalized = $DownloadedVersion.TrimStart('v')
+$ServerVersionNormalized = $ServerVersion.TrimStart('v')
+
+if (-not [string]::IsNullOrWhiteSpace($ServerVersion) -and -not [string]::IsNullOrWhiteSpace($DownloadedVersion) -and $DownloadedVersionNormalized -ne $ServerVersionNormalized) {
Write-Host "Warning: downloaded agent version ($DownloadedVersion) does not match Pulse server version ($ServerVersion). Check that Pulse is upgraded and that any reverse proxy is not serving a stale cached binary." -ForegroundColor Yellow
}