+4
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user