From: Ben Gras Date: Thu, 19 Apr 2012 14:48:48 +0000 (+0200) Subject: daily cron: fix timestamp updating X-Git-Tag: v3.2.1~575 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-verify.html?a=commitdiff_plain;h=2720b68f1ba0313a0c62a98d7c2a65171df6f6ce;p=minix.git daily cron: fix timestamp updating . previously was not updated causing daily to be run on every boot --- diff --git a/etc/usr/daily b/etc/usr/daily index 5b34d464a..b6b1eb157 100755 --- a/etc/usr/daily +++ b/etc/usr/daily @@ -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