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