From 162df37da4b2f3d58ccde81495c70445f1970c7c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 1 Feb 2015 17:38:05 -0400 Subject: propellor spin --- src/Propellor/Property/Cron.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Propellor/Property/Cron.hs') 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` -- cgit v1.2.3