From c21c1ece34ce30e9276fa8ca80f5bf5837635f83 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 28 Nov 2012 17:04:56 +0100 Subject: [PATCH] Download available updates nightly --- ipasserelle-base.spec | 2 ++ root/etc/cron.daily/download-updates | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 root/etc/cron.daily/download-updates diff --git a/ipasserelle-base.spec b/ipasserelle-base.spec index da2c665..d677083 100644 --- a/ipasserelle-base.spec +++ b/ipasserelle-base.spec @@ -38,6 +38,7 @@ Requires: perl(Net::LDAP) Requires: perl(Proc::ProcessTable) Requires: perl(Proc::ProcessTable::Process) Requires: pbzip2 +Requires: yum-downloadonly %description @@ -232,6 +233,7 @@ perl createlinks --file /etc/cron.hourly/qmail-notify 'attr(0755,root,root)' \ --file /etc/cron.hourly/cacrl 'attr(0755,root,root)' \ --file /etc/cron.daily/purge-homes-recycle 'attr(0755,root,root)' \ + --file /etc/cron.daily/download-updates 'attr(0755,root,root)' \ --dir /home/e-smith/files/scan 'attr(0750,root,shared)' \ --dir /var/lib/qpsmtpd/greylisting 'attr(0750,qpsmtpd,qpsmtpd)' \ --file /usr/bin/make-srv 'attr(0755,root,root)' \ diff --git a/root/etc/cron.daily/download-updates b/root/etc/cron.daily/download-updates new file mode 100644 index 0000000..dc89e92 --- /dev/null +++ b/root/etc/cron.daily/download-updates @@ -0,0 +1,4 @@ +#!/bin/bash + +/usr/bin/yum --downloadonly -y update 2>&1 > /dev/null +exit 0