Skip to content

Commit 6793771

Browse files
committed
version check
1 parent 8912370 commit 6793771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,8 @@ func wrapTransportWithVersionMismatchCheck(rt http.RoundTripper, inv *serpent.In
12171217
switch {
12181218
case serverInfo.UpgradeMessage != "":
12191219
upgradeMessage = serverInfo.UpgradeMessage
1220-
case serverInfo.DashboardURL != "":
1220+
// The site-local `install.sh` was introduced in v2.19.0
1221+
case serverInfo.DashboardURL != "" && semver.Compare(semver.MajorMinor(serverVersion), "v2.19") >= 0:
12211222
upgradeMessage = fmt.Sprintf("download the server version with: 'curl -fsSL %s/install.sh | sh'", serverInfo.DashboardURL)
12221223
}
12231224
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy