diff --git a/src/sftp.js b/src/sftp.js index 0295a2ce3..f2e11ad69 100644 --- a/src/sftp.js +++ b/src/sftp.js @@ -40,7 +40,7 @@ function rebuild(options, callback) { let dataDirs = []; result.forEach(function (app) { - if (!app.dataDir) return; + if (!app.manifest.addons['localstorage']) return; if (options.ignoredApps && options.ignoredApps.indexOf(app.id) !== -1) { debug(`Ignoring volume for ${app.id}`); @@ -49,7 +49,7 @@ function rebuild(options, callback) { dataDirs.push({ hostDir: app.dataDir || path.join(paths.APPS_DATA_DIR, app.id, 'data'), - // /data is required since this is where the localstorage data would be in APPS_DATA_DIR + // FIXME data/ prefix can be dropped if sftp addon code is changed mountDir: `/app/data/${app.id}/data` }); });