From 33b143d5947654b246b8d93c2ebb876aab149618 Mon Sep 17 00:00:00 2001
From: Deepti Kulkarni <deepti@vyatta.com>
Date: Tue, 6 Jul 2010 03:15:02 +0000
Subject: Changed to save 100 log files instead of 10.

---
 functions/tech-support       | 2 +-
 functions/tech-support-brief | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'functions')

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'"
diff --git a/functions/tech-support-brief b/functions/tech-support-brief
index 0521416..27c62fd 100755
--- a/functions/tech-support-brief
+++ b/functions/tech-support-brief
@@ -19,7 +19,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 brief output file '$dfile'"
-- 
cgit v1.2.3