apt::reboot_required_notify: take into account the random sleep time.
This commit is contained in:
parent
4195a91773
commit
4625afacae
1 changed files with 2 additions and 1 deletions
|
@ -8,11 +8,12 @@ class apt::reboot_required_notify {
|
|||
}
|
||||
|
||||
# cron-apt defaults to run every night at 4 o'clock
|
||||
# plus some random time <1h.
|
||||
# so we check if a reboot is required a bit later.
|
||||
cron { 'apt_reboot_required_notify':
|
||||
command => 'if [ -f /var/run/reboot-required ]; then echo "Reboot required\n" ; cat /var/run/reboot-required.pkgs ; fi',
|
||||
user => root,
|
||||
hour => 4,
|
||||
hour => 5,
|
||||
minute => 20,
|
||||
require => Package['update-notifier-common'],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue