diff --git a/src/apps.js b/src/apps.js index 49c68cfce..bb235fbcf 100644 --- a/src/apps.js +++ b/src/apps.js @@ -1979,7 +1979,8 @@ function listBackups(app, page, perPage, callback) { }); } -function restoreInstalledApps(callback) { +function restoreInstalledApps(options, callback) { + assert.strictEqual(typeof options, 'object'); assert.strictEqual(typeof callback, 'function'); getAll(function (error, apps) { @@ -2002,7 +2003,7 @@ function restoreInstalledApps(callback) { } const task = { - args: { restoreConfig, skipDnsSetup: false, overwriteDns: true, oldManifest }, + args: { restoreConfig, skipDnsSetup: options.skipDnsSetup, overwriteDns: true, oldManifest }, values: {}, scheduleNow: false, // task will be scheduled by autoRestartTasks when platform is ready requireNullTaskId: false // ignore existing stale taskId