Revamp automatic updates setting and adapt its usage

This commit is contained in:
Daniel
2020-11-04 14:50:42 +01:00
parent 30f84e8009
commit 385c0a164c
2 changed files with 20 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ const (
releaseChannelStable = "stable"
releaseChannelBeta = "beta"
disableUpdatesKey = "core/disableUpdates"
enableUpdatesKey = "core/automaticUpdates"
// ModuleName is the name of the update module
// and can be used when declaring module dependencies.
@@ -245,7 +245,7 @@ func DisableUpdateSchedule() error {
}
func checkForUpdates(ctx context.Context) (err error) {
if updatesCurrentlyDisabled {
if !updatesCurrentlyEnabled {
log.Debugf("updates: automatic updates are disabled")
return nil
}