Move logs into platformdata/logs

This commit is contained in:
Johannes Zellner
2018-06-04 20:23:29 +02:00
parent 8fa99fae1a
commit d4097ed4e0
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -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
+1 -1
View File
@@ -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')
};