You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-15 11:43:58 +08:00
Fix log dir error on docker if not created
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user