Do not automatically update to unstable release

fixes #726
This commit is contained in:
Girish Ramakrishnan
2020-08-13 14:26:37 -07:00
parent ba29889f54
commit 26b1f8dfdb
+4 -6
View File
@@ -201,12 +201,10 @@ function boxAutoupdatePatternChanged(pattern, tz) {
cronTime: pattern,
onTick: function() {
var updateInfo = updateChecker.getUpdateInfo();
if (updateInfo.box) {
debug('Starting autoupdate to %j', updateInfo.box);
updater.updateToLatest({ skipBackup: false }, auditSource.CRON, NOOP_CALLBACK);
} else {
debug('No box auto updates available');
}
if (!updateInfo.box) return debug('No box auto updates available');
if (updateInfo.box.unstable) return debug('Will not auto-update to unstable release');
debug('Starting autoupdate to %j', updateInfo.box);
updater.updateToLatest({ skipBackup: false }, auditSource.CRON, NOOP_CALLBACK);
},
start: true,
timeZone: tz