Merge branch '1.1.10'

This commit is contained in:
Ronni Skansing
2025-08-27 17:33:58 +02:00
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ RestrictSUIDSGID=true
MemoryDenyWriteExecute=true
Restart=always
RestartSec=5s
StartLimitBurst=3 # Allow max 3 restart attempts
StartLimitInterval=60s # Within 60 seconds
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
+4
View File
@@ -508,6 +508,10 @@ func (u *Update) verifySignature(binaryPath, sigPath string) error {
}
func (u *Update) CheckUpdateVersion(currentVersion, latestVersion string) (bool, error) {
if !build.Flags.Production {
// ignroe version in development
return false, nil
}
// The semver package expects versions to be prefixed with 'v'
current := ensureVPrefix(currentVersion)
latest := ensureVPrefix(latestVersion)