diff --git a/backend/install/systemd.service b/backend/install/systemd.service index a708e04..7b0fba8 100644 --- a/backend/install/systemd.service +++ b/backend/install/systemd.service @@ -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 diff --git a/backend/service/update.go b/backend/service/update.go index b720aca..4a2e1e7 100644 --- a/backend/service/update.go +++ b/backend/service/update.go @@ -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)