make cache folders always writable

This commit is contained in:
Girish Ramakrishnan
2022-10-24 23:58:20 +02:00
parent d8eb8d23bb
commit 2f946de775

View File

@@ -317,7 +317,9 @@ async function createSubcontainer(app, name, cmd, options) {
const addonEnv = await services.getEnvironment(app);
const runtimeVolumes = {
'/tmp': {},
'/run': {}
'/run': {},
'/home/cloudron/.cache': {},
'/root/.cache': {}
};
if (app.manifest.runtimeDirs) {
app.manifest.runtimeDirs.forEach(dir => runtimeVolumes[dir] = {});