test data dir migration
This commit is contained in:
+5
-1
@@ -708,6 +708,10 @@ function migrateDataDir(app, oldConfig, progressCallback, callback) {
|
||||
progressCallback.bind(null, { percent: 45, message: 'Ensuring app data directory' }),
|
||||
createAppDir.bind(null, app),
|
||||
|
||||
// re-setup addons since this creates the localStorage volume
|
||||
progressCallback.bind(null, { percent: 50, message: 'Setting up addons' }),
|
||||
addons.setupAddons.bind(null, app, app.manifest.addons),
|
||||
|
||||
// migrate dataDir
|
||||
function (next) {
|
||||
if (!dataDirChanged) return next();
|
||||
@@ -718,7 +722,7 @@ function migrateDataDir(app, oldConfig, progressCallback, callback) {
|
||||
progressCallback.bind(null, { percent: 60, message: 'Creating container' }),
|
||||
createContainer.bind(null, app),
|
||||
|
||||
progressCallback.bind(null, { percent: 60, message: 'Starting app' }),
|
||||
progressCallback.bind(null, { percent: 80, message: 'Starting app' }),
|
||||
runApp.bind(null, app, progressCallback),
|
||||
|
||||
progressCallback.bind(null, { percent: 100, message: 'Done' }),
|
||||
|
||||
Reference in New Issue
Block a user