From 2720b68f1ba0313a0c62a98d7c2a65171df6f6ce Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 19 Apr 2012 16:48:48 +0200 Subject: [PATCH] daily cron: fix timestamp updating . previously was not updated causing daily to be run on every boot --- etc/usr/daily | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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