summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-12-02 14:16:19 +0000
committerTed Trask <ttrask01@yahoo.com>2008-12-02 14:16:19 +0000
commitdd48241b1a095072d010f8325806e4f533829083 (patch)
treeda0390f7305c96275b4157eaf30f6d701cb2628a
parentf4f4e1f61b78d2ea01493143e4d229076c3dfc08 (diff)
downloadacf-alpine-baselayout-dd48241b1a095072d010f8325806e4f533829083.tar.bz2
acf-alpine-baselayout-dd48241b1a095072d010f8325806e4f533829083.tar.xz
Modify cron to make directory if necessary.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1616 ab2d0c66-481e-0410-8bed-d214d4d58bed
-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"