summaryrefslogtreecommitdiff
path: root/functions/tech-support
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 /functions/tech-support
parent1998acc76b6016b278ac2c3e7ced2be6a18c6f5f (diff)
downloadvyatta-op-33b143d5947654b246b8d93c2ebb876aab149618.tar.gz
vyatta-op-33b143d5947654b246b8d93c2ebb876aab149618.zip
Changed to save 100 log files instead of 10.
Diffstat (limited to 'functions/tech-support')
-rwxr-xr-xfunctions/tech-support2
1 files changed, 1 insertions, 1 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'"