diff --git a/src/config.js b/src/config.js index 7fcf092e0..b9d1670f4 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,6 @@ exports = module.exports = { baseDir: baseDir, - logDir: logDir, // values set here will be lost after a upgrade/update. use the sqlite database // for persistent values that need to be backed up @@ -62,11 +61,6 @@ function baseDir() { if (exports.TEST) return path.join(homeDir, '.cloudron_test'); } -function logDir() { - if (exports.CLOUDRON) return '/var/log'; - if (exports.TEST) return path.join(homeDir, '.cloudron_test', 'log'); -} - var cloudronConfigFileName = path.join(baseDir(), 'configs/cloudron.conf'); // only tests can run without a config file on disk, they use the defaults with runtime overrides diff --git a/src/paths.js b/src/paths.js index f8ca66437..ad0c5f655 100644 --- a/src/paths.js +++ b/src/paths.js @@ -35,5 +35,5 @@ exports = module.exports = { AUTO_PROVISION_FILE: path.join(config.baseDir(), 'configs/autoprovision.json'), - LOG_DIR: path.join(config.logDir(), 'cloudron') + LOG_DIR: path.join(config.baseDir(), 'platformdata/logs') };