summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cron-model.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron-model.lua b/cron-model.lua
index 65d4393..f900302 100644
--- a/cron-model.lua
+++ b/cron-model.lua
@@ -107,6 +107,9 @@ function create_job(newjob)
end
if success then
+ if not posix.stat(baseurl..newjob.value.period.value) then
+ posix.mkdir(baseurl..newjob.value.period.value)
+ end
fs.create_file(baseurl..newjob.value.period.value.."/"..newjob.value.name.value)
else
newjob.errtxt = "Failed to create new job"