diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-02-25 14:58:40 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-02-25 14:58:40 -0400 |
| commit | fa7656f74356ca1f85f225cbdf2f6c1f56fe788f (patch) | |
| tree | 36e898afa292ec589d18452e46976c0912f5a37a /src/Propellor/Property/Cron.hs | |
| parent | 5b56a416c17be95ad5b54a886a29ef3b6a72d223 (diff) | |
Add shebang to cron.daily etc files.
Diffstat (limited to 'src/Propellor/Property/Cron.hs')
| -rw-r--r-- | src/Propellor/Property/Cron.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Propellor/Property/Cron.hs b/src/Propellor/Property/Cron.hs index fd365c8f..2a28a157 100644 --- a/src/Propellor/Property/Cron.hs +++ b/src/Propellor/Property/Cron.hs @@ -30,7 +30,10 @@ data Times job :: Desc -> Times -> UserName -> FilePath -> String -> Property NoInfo job desc times user cddir command = combineProperties ("cronned " ++ desc) [ cronjobfile `File.hasContent` - [ "# Generated by propellor" + [ case times of + Times _ -> "" + _ -> "#!/bin/sh\nset -e" + , "# Generated by propellor" , "" , "SHELL=/bin/sh" , "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" |
