1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2025-09-16 08:49:29 +00:00

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.
This commit is contained in:
Fabian Neumann
2018-04-11 09:21:37 +02:00
committed by GitHub
parent c7e02c53dd
commit 4820ededfa

View File

@@ -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 => '*',
},