This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
anacron/anacron-script.patch
2007-08-15 11:27:28 +00:00

12 lines
389 B
Diff

--- anacron-2.3/debian/0anacron.daily.script 2007-08-15 09:21:14.000000000 +0200
+++ anacron-2.3/debian/0anacron.daily 2007-08-15 09:30:15.000000000 +0200
@@ -9,4 +9,8 @@
# _before_ all other scripts.
test -x /usr/sbin/anacron || exit 0
-anacron -u cron.daily
+AUX1=`cat /var/spool/anacron/cron.daily`
+AUX2=`date +%Y%m%d`
+if [ "$AUX1" != $AUX2 ]; then
+ anacron -u cron.daily
+fi