daily cron: fix timestamp updating

. previously was not updated causing daily to be run on
	  every boot
This commit is contained in:
Ben Gras 2012-04-19 16:48:48 +02:00
parent a149be43fc
commit 2720b68f1b

View file

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