Fix log dir error on docker if not created

pull/215/head
rodriciru 2022-10-24 13:32:04 +02:00 committed by GitHub
parent a51b65dd3f
commit 94f1b3c88d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ var cron_parser = require("cron-parser");
var cronstrue = require('cronstrue/i18n');
var humanCronLocate = process.env.HUMANCRON ?? "en"
if (!fs.existsSync(exports.log_folder)){
fs.mkdirSync(exports.log_folder);
}
crontab = function(name, command, schedule, stopped, logging, mailing){
var data = {};