From 4820ededfa4ff398c004f5d6ffaf028b0ae28c12 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 11 Apr 2018 09:21:37 +0200 Subject: [PATCH] Fix: monthday in cronjob cannot be 0 At least according to `man 5 cronjob` (and also Wikipedia ;) the day of month can only be 1-31. When the script created a cron.d file with a 0 at that position the script would not run at all. --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 12e54c9..d28fbcb 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -96,7 +96,7 @@ class rsnapshot::params { monthly => { minute => '0..59', hour => '0..23', # you could also do: ['21..23','0..4','5'], - monthday => '0..28', + monthday => '1..28', month => '*', weekday => '*', },