From 33b143d5947654b246b8d93c2ebb876aab149618 Mon Sep 17 00:00:00 2001 From: Deepti Kulkarni Date: Tue, 6 Jul 2010 03:15:02 +0000 Subject: Changed to save 100 log files instead of 10. --- functions/tech-support | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/tech-support') diff --git a/functions/tech-support b/functions/tech-support index 1d10a9f..5c96691 100755 --- a/functions/tech-support +++ b/functions/tech-support @@ -20,7 +20,7 @@ DEFAULT_GROUP=users do_rotate () { local count=`ls -t $DEFAULT_PATH/*.tech-support.* 2>/dev/null |wc -l` - if (( count >= 10 )); then + if (( count >= 100 )); then local dfile=`ls -t $DEFAULT_PATH/*.tech-support.* 2>/dev/null |tail -1` rm -f $dfile >&/dev/null \ && echo "Removed old tech-support output file '$dfile'" -- cgit v1.2.3