File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,10 @@ usage() {
123
123
echo
124
124
echo " Monitoring:"
125
125
echo " --watch Watch processing of recordings"
126
+ echo
127
+ echo " Administration:"
126
128
echo " --rebuild [meetingID] rebuild the output for meetingID"
127
- echo " --republish [meetingID] republish the recording for meetingID"
129
+ echo " --republish [meetingID] republish the recording for meetingID"
128
130
echo " --delete [meetingID] delete one meeting and recording"
129
131
echo " --deletall delete all meetings and recordings"
130
132
echo " --debug check for recording errors"
@@ -208,6 +210,13 @@ while [ $# -gt 0 ]; do
208
210
continue
209
211
fi
210
212
213
+ if [ " $1 " = " -clean" -o " $1 " = " --clean" ]; then
214
+ need_root
215
+ CLEAN=1
216
+ shift
217
+ continue
218
+ fi
219
+
211
220
usage
212
221
exit 1
213
222
done
@@ -242,6 +251,15 @@ if [ $REPUBLISH ]; then
242
251
fi
243
252
fi
244
253
254
+ if [ $CLEAN ]; then
255
+ sudo /etc/init.d/bbb-record-core stop
256
+ for type in $TYPES ; do
257
+ echo " clearning logs in /var/log/bigbluebutton/$type "
258
+ find /var/log/bigbluebutton/$type -name " *.log" -exec sudo rm ' {}' \;
259
+ done
260
+ sudo /etc/init.d/bbb-record-core start
261
+ fi
262
+
245
263
if [ $DELETE ]; then
246
264
if [ ! -z " $MEETING_ID " ]; then
247
265
for type in $TYPES ; do
You can’t perform that action at this time.
0 commit comments