Add patches for review.

This commit is contained in:
Marcela Mašláňová 2009-11-02 08:16:07 +00:00
parent 2bb05b688d
commit 0e67d75db0
2 changed files with 23 additions and 0 deletions

13
contrib.patch Normal file
View File

@ -0,0 +1,13 @@
diff -urN cronie-1.4.2/contrib.old/0anacron cronie-1.4.2/contrib/0anacron
--- cronie-1.4.2/contrib.old/0anacron 2009-09-25 08:23:18.000000000 +0200
+++ cronie-1.4.2/contrib/0anacron 2009-10-30 17:34:28.369959197 +0100
@@ -1,4 +1,9 @@
#!/bin/bash
+# in case nonanacron is installed
+if [! -x /etc/cron.daily/dailyjob ]; then
+ exit 0;
+fi
+
#in case file doesn't exist
if test -x /var/spool/anacron/cron.daily; then
day=`cat /var/spool/anacron/cron.daily`

10
dailyjobs Normal file
View File

@ -0,0 +1,10 @@
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.hourly
02 4 * * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.daily
22 4 * * 0 root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.weekly
42 4 1 * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.monthly