update: continue to update apps if box update never starts

https://forum.cloudron.io/topic/10699/no-automatic-app-updates-with-pending-box-update
This commit is contained in:
Girish Ramakrishnan
2023-12-28 12:15:11 +01:00
parent 672b472359
commit fa842034ed
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -219,8 +219,9 @@ async function handleAutoupdatePatternChanged(pattern) {
if (updateInfo.box && !updateInfo.box.unstable) {
debug('Starting box autoupdate to %j', updateInfo.box);
const [error] = await safe(updater.updateToLatest({ skipBackup: false }, AuditSource.CRON));
if (error) debug(`Failed to box autoupdate: ${error.message}`);
return;
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)
}
const appUpdateInfo = _.omit(updateInfo, 'box');