diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-13 10:08:47 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-13 10:08:47 +0100 |
commit | 4625afacaea115cb3ef20ba2b0f277890c480e93 (patch) | |
tree | ebd90c8d0a7f28b2faafd2704f274697c2720996 | |
parent | 4195a917733bc535d4312e3fe637d6da4c72c105 (diff) | |
download | puppet-apt-4625afacaea115cb3ef20ba2b0f277890c480e93.tar.gz puppet-apt-4625afacaea115cb3ef20ba2b0f277890c480e93.tar.bz2 |
apt::reboot_required_notify: take into account the random sleep time.
-rw-r--r-- | manifests/reboot_required_notify.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/reboot_required_notify.pp b/manifests/reboot_required_notify.pp index 3c6db79..3603aa2 100644 --- a/manifests/reboot_required_notify.pp +++ b/manifests/reboot_required_notify.pp @@ -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'], } |