From fa7656f74356ca1f85f225cbdf2f6c1f56fe788f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Feb 2015 14:58:40 -0400 Subject: Add shebang to cron.daily etc files. --- debian/changelog | 1 + src/Propellor/Property/Cron.hs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ef4b8a28..b31c7ed2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ propellor (2.1.1) UNRELEASED; urgency=medium * When running shimmed (eg in a docker container), improve process name visible in ps. + * Add shebang to cron.daily etc files. -- Joey Hess Mon, 16 Feb 2015 19:00:48 -0400 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" -- cgit v1.2.3