]> Zhao Yanbai Git Server - minix.git/commitdiff
daily cron: fix timestamp updating
authorBen Gras <ben@minix3.org>
Thu, 19 Apr 2012 14:48:48 +0000 (16:48 +0200)
committerBen Gras <ben@minix3.org>
Thu, 19 Apr 2012 14:57:58 +0000 (16:57 +0200)
. previously was not updated causing daily to be run on
  every boot

etc/usr/daily

index 5b34d464ae843f681c2d9a67edcfe88eba656e2b..b6b1eb157fb36c13ef1a47a752b7622e0d717ddc 100755 (executable)
@@ -25,7 +25,9 @@ then
     set -- `ls -lT $timestamp`
     test "$6 $7 $9" = "$(date '+%b %d %Y')" && exit
 fi
->$timestamp
+
+# Update last-run time
+echo >$timestamp
 
 # Remove three day old files from various tmp dirs.
 cleantmp -3 /tmp /usr/tmp /usr/preserve /usr/spool/lpd /usr/spool/at/past