Fix to script that cleans 'user-visible' scheduler logs, to prevent

it from inadvertently leaving old files hanging around.

svn path=/trunk/boinc/; revision=9067
This commit is contained in:
Bruce Allen 2005-12-14 23:25:25 +00:00
parent 646c9a5e81
commit c5ed94a649
2 changed files with 9 additions and 1 deletions

View File

@ -14440,3 +14440,11 @@ Jeff 14 Dec 2005
sched/
file_upload_handler.C
Makefile.am
Bruce 14 Dec 2005
- Fix to script that cleans 'user-visible' scheduler logs, to prevent
it from inadvertently leaving old files hanging around.
tools/
cleanlogs.sh

View File

@ -13,6 +13,6 @@
# in your project's config.xml file
cd ../html/user/sched_logs/ || exit 1
find . -type d -name "20*" -mtime 7 | xargs rm -rf || exit 2
find . -type d -name "20*" -mtime +7 | xargs rm -rf || exit 2
echo "`date '+%Y-%m-%d %H:%M:'`" "cleaned scheduler logs"
exit 0