apptask: use primary target during update
This commit is contained in:
+2
-1
@@ -565,8 +565,9 @@ async function updateCommand(app, args, progressCallback) {
|
||||
|
||||
if (!updateConfig.skipBackup) {
|
||||
await progressCallback({ percent: 15, message: 'Backing up app' });
|
||||
const backupTarget = await backupTargets.getPrimary();
|
||||
// preserve update backups for 3 weeks
|
||||
const [error] = await safe(backuptask.backupApp(app, { preserveSecs: 3*7*24*60*60 }, (progress) => {
|
||||
const [error] = await safe(backuptask.backupApp(app, backupTarget, { preserveSecs: 3*7*24*60*60 }, (progress) => {
|
||||
progressCallback({ percent: 15, message: `Backup - ${progress.message}` });
|
||||
}));
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user