Move logs into platformdata/logs
This commit is contained in:
@@ -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
@@ -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')
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user