Revert "Expose the host /app/data folder when localstorage and docker addons are used"

We will use the docker proxy for that

This reverts commit b3aa59de19.
This commit is contained in:
Johannes Zellner
2018-08-13 20:39:23 +02:00
parent a1b983de23
commit 6933184c2e

View File

@@ -205,9 +205,6 @@ function getEnvironment(app, callback) {
appdb.getAddonConfigByAppId(app.id, function (error, result) {
if (error) return callback(error);
// expose the /app/data location of the host when localstorage and docker addons are used
if (app.manifest.addons['localstorage'] && app.manifest.addons['docker']) result.push({ name: 'DOCKER_DATA_DIR', value: path.join(paths.APPS_DATA_DIR, app.id, 'data') });
return callback(null, result.map(function (e) { return e.name + '=' + e.value; }));
});
}