summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Cron.hs
diff options
context:
space:
mode:
authorJoey Hess2015-02-01 17:38:05 -0400
committerJoey Hess2015-02-01 17:38:05 -0400
commit162df37da4b2f3d58ccde81495c70445f1970c7c (patch)
treee70973a44dfc2bf910792f765cc4ba5d3077d56c /src/Propellor/Property/Cron.hs
parentca4cadd931ec6d3f9e0ea996b1f77d53b3128914 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/Cron.hs')
-rw-r--r--src/Propellor/Property/Cron.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Propellor/Property/Cron.hs b/src/Propellor/Property/Cron.hs
index e75f5ee3..fd365c8f 100644
--- a/src/Propellor/Property/Cron.hs
+++ b/src/Propellor/Property/Cron.hs
@@ -41,6 +41,9 @@ job desc times user cddir command = combineProperties ("cronned " ++ desc)
"root" -> "chronic " ++ shellEscape scriptfile
_ -> "chronic su " ++ user ++ " -c " ++ shellEscape scriptfile
]
+ , case times of
+ Times _ -> doNothing
+ _ -> cronjobfile `File.mode` combineModes (readModes ++ executeModes)
-- Use a separate script because it makes the cron job name
-- prettier in emails, and also allows running the job manually.
, scriptfile `File.hasContent`