From 7d48887428c16354d5e25ebc10a87c2c25de79cb Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 16 Feb 2018 15:58:31 -0800 Subject: [PATCH] Enable auto-updates for major versions Cloudron is always rolling releases and we never break compat --- src/cron.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cron.js b/src/cron.js index 653e548c5..9863c9e73 100644 --- a/src/cron.js +++ b/src/cron.js @@ -204,12 +204,8 @@ function autoupdatePatternChanged(pattern) { onTick: function() { var updateInfo = updateChecker.getUpdateInfo(); if (updateInfo.box) { - if (semver.major(updateInfo.box.version) === semver.major(config.version())) { - debug('Starting autoupdate to %j', updateInfo.box); - cloudron.updateToLatest(AUDIT_SOURCE, NOOP_CALLBACK); - } else { - debug('Block automatic update for major version'); - } + debug('Starting autoupdate to %j', updateInfo.box); + cloudron.updateToLatest(AUDIT_SOURCE, NOOP_CALLBACK); } else if (updateInfo.apps) { debug('Starting app update to %j', updateInfo.apps); apps.autoupdateApps(updateInfo.apps, AUDIT_SOURCE, NOOP_CALLBACK);