refactor: rename updater functions to have box in them
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ async function handleAutoupdatePatternChanged(pattern) {
|
||||
// do box before app updates. for the off chance that the box logic fixes some app update logic issue
|
||||
if (updateInfo.box && !updateInfo.box.unstable) {
|
||||
debug('Starting box autoupdate to %j', updateInfo.box.version);
|
||||
const [error] = await safe(updater.updateToLatest({ skipBackup: false }, AuditSource.CRON));
|
||||
const [error] = await safe(updater.startBoxUpdateTask({ skipBackup: false }, AuditSource.CRON));
|
||||
if (!error) return; // do not start app updates when a box update got scheduled
|
||||
debug(`Failed to start box autoupdate task: ${error.message}`);
|
||||
// fall through to update apps if box update never started (failed ubuntu or avx check)
|
||||
|
||||
Reference in New Issue
Block a user