From b62c822d676c1bf7941bff556bad7cf189343219 Mon Sep 17 00:00:00 2001
From: Ghazi Triki <ghazi.triki@riadvice.tn>
Date: Sun, 9 Dec 2018 21:47:13 +0100
Subject: [PATCH] Better logs cleanup.

---
 bigbluebutton-config/bin/bbb-conf | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf
index 85cf5cab0e..37f9331359 100755
--- a/bigbluebutton-config/bin/bbb-conf
+++ b/bigbluebutton-config/bin/bbb-conf
@@ -57,6 +57,7 @@
 #   2016-10-17 GTR  Added redis to checked server components & added ownership check for video and freeswitch recording directories
 #   2017-04-08 FFD  Cleanup for 1.1-beta
 #   2018-11-22 MNE  Dynamically detect if sudo is needed
+#   2018-12-09 GTR  More logs cleanup
 
 #set -x
 #set -e
@@ -1982,8 +1983,20 @@ if [ $CLEAN ]; then
 	#
 	rm -f /var/log/bigbluebutton/bbb-rap-worker.log*
 	rm -f /var/log/bigbluebutton/archive.log*
-	if [ -d /var/log/bigbluebutton/slides ]; then
-		rm -f /var/log/bigbluebutton/slides/*
+	if [ -d /var/log/bigbluebutton/html5 ]; then
+		rm -f /var/log/bigbluebutton/html5/*
+	fi
+	
+	if [ -d /var/log/bigbluebutton/podcast ]; then
+		rm -f /var/log/bigbluebutton/podcast/*
+	fi
+	
+	if [ -d /var/log/bigbluebutton/presentation ]; then
+		rm -f /var/log/bigbluebutton/presentation/*
+	fi
+	
+	if [ -d /var/log/bigbluebutton/screenshare ]; then
+		rm -f /var/log/bigbluebutton/screenshare/*
 	fi
 		
 	
@@ -2018,6 +2031,18 @@ if [ $CLEAN ]; then
 	if [ -d /var/log/bbb-webrtc-sfu ]; then
 		rm -f /var/log/bbb-webrtc-sfu/*
 	fi
+	
+	if [ -d /var/log/redis ]; then
+		rm -f /var/log/redis/*
+	fi
+
+	if [ -d /var/log/mongodb ]; then
+		rm -f /var/log/mongodb/*
+	fi
+
+	if [ -d /var/log/kurento-media-server ]; then
+		rm -f /var/log/kurento-media-server/*
+	fi
 
 	start_bigbluebutton
 	check_state
-- 
GitLab