Download available updates nightly

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 12 years ago
parent 1ba6d8d9ba
commit c21c1ece34
  1. 2
      ipasserelle-base.spec
  2. 4
      root/etc/cron.daily/download-updates

@ -38,6 +38,7 @@ Requires: perl(Net::LDAP)
Requires: perl(Proc::ProcessTable) Requires: perl(Proc::ProcessTable)
Requires: perl(Proc::ProcessTable::Process) Requires: perl(Proc::ProcessTable::Process)
Requires: pbzip2 Requires: pbzip2
Requires: yum-downloadonly
%description %description
@ -232,6 +233,7 @@ perl createlinks
--file /etc/cron.hourly/qmail-notify 'attr(0755,root,root)' \ --file /etc/cron.hourly/qmail-notify 'attr(0755,root,root)' \
--file /etc/cron.hourly/cacrl '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/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 /home/e-smith/files/scan 'attr(0750,root,shared)' \
--dir /var/lib/qpsmtpd/greylisting 'attr(0750,qpsmtpd,qpsmtpd)' \ --dir /var/lib/qpsmtpd/greylisting 'attr(0750,qpsmtpd,qpsmtpd)' \
--file /usr/bin/make-srv 'attr(0755,root,root)' \ --file /usr/bin/make-srv 'attr(0755,root,root)' \

@ -0,0 +1,4 @@
#!/bin/bash
/usr/bin/yum --downloadonly -y update 2>&1 > /dev/null
exit 0
Loading…
Cancel
Save