propellor spin

This commit is contained in:
Joey Hess 2015-02-01 17:38:05 -04:00
parent ca4cadd931
commit 162df37da4
Failed to extract signature
1 changed files with 3 additions and 0 deletions

View File

@ -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`