daily cron: fix timestamp updating
. previously was not updated causing daily to be run on every boot
This commit is contained in:
parent
a149be43fc
commit
2720b68f1b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue