summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2010-07-06 03:15:02 +0000
committerDeepti Kulkarni <deepti@vyatta.com>2010-07-06 03:15:02 +0000
commit33b143d5947654b246b8d93c2ebb876aab149618 (patch)
tree685a1b4868d0e3b6cb3f10d2ca86f31c8958b79a
parent1998acc76b6016b278ac2c3e7ced2be6a18c6f5f (diff)
downloadvyatta-op-33b143d5947654b246b8d93c2ebb876aab149618.tar.gz
vyatta-op-33b143d5947654b246b8d93c2ebb876aab149618.zip
Changed to save 100 log files instead of 10.
-rwxr-xr-xfunctions/tech-support2
-rwxr-xr-xfunctions/tech-support-brief2
2 files changed, 2 insertions, 2 deletions
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'"