From c5ed94a649b6ac1f96b976900aa4914107883fae Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 14 Dec 2005 23:25:25 +0000 Subject: [PATCH] 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 --- checkin_notes | 8 ++++++++ tools/cleanlogs.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 8b0e7dd65e..3597a07195 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 + diff --git a/tools/cleanlogs.sh b/tools/cleanlogs.sh index eacfd7db96..28bbea04da 100755 --- a/tools/cleanlogs.sh +++ b/tools/cleanlogs.sh @@ -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