diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-02-01 17:38:05 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-02-01 17:38:05 -0400 |
| commit | 162df37da4b2f3d58ccde81495c70445f1970c7c (patch) | |
| tree | e70973a44dfc2bf910792f765cc4ba5d3077d56c /src | |
| parent | ca4cadd931ec6d3f9e0ea996b1f77d53b3128914 (diff) | |
propellor spin
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Cron.hs | 3 |
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` |
