1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-10 00:00:35 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class rsnapshot::params {
monthly => { monthly => {
minute => '0..59', minute => '0..59',
hour => '0..23', # you could also do: ['21..23','0..4','5'], hour => '0..23', # you could also do: ['21..23','0..4','5'],
monthday => '0..28', monthday => '1..28',
month => '*', month => '*',
weekday => '*', weekday => '*',
}, },