Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The command now counts the number of slides using either the raw or p…

…resentation dir
  • Loading branch information...
commit 4035b4a732be181d8ced075b52956885e5845dca 1 parent b5abbd8
@ffdixon ffdixon authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 bigbluebutton-config/bin/bbb-record
View
12 bigbluebutton-config/bin/bbb-record
@@ -88,8 +88,8 @@ mark_for_republish() {
#set -x
for type in $TYPES; do
if [ -d $BASE/publish/$type/$MEETING_ID ]; then
- rm -rf $BASE/publish/$type/$MEETING_ID
- fi
+ rm -rf $BASE/publish/$type/$MEETING_ID
+ fi
if [ -d /var/bigbluebutton/published/$type/$MEETING_ID ]; then
rm -rf /var/bigbluebutton/published/$type/$MEETING_ID
@@ -353,7 +353,7 @@ fi
tmp_file=$(mktemp)
ls -t /var/bigbluebutton | grep "[0-9]\{13\}$" | head -n $HEAD > $tmp_file
ls -t /var/bigbluebutton/recording/raw | grep "[0-9]\{13\}$" | head -n $HEAD >> $tmp_file
-
+
#for meeting in $(ls -t /var/bigbluebutton | grep "[0-9]\{13\}$" | head -n $HEAD); do
for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
echo -n "$meeting"
@@ -452,7 +452,11 @@ for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
#
# Numbe rof slides
- printf "%7s" $(find /var/bigbluebutton/$meeting/$meeting -name "*.swf" | wc -l)
+ if [ -d /var/bigbluebutton/$meeting/$meeting ]; then
+ printf "%7s" $(find /var/bigbluebutton/$meeting/$meeting -name "*.swf" | wc -l)
+ else
+ printf "%7s" $(find /var/bigbluebutton/recording/raw/$meeting -name "*.swf" | wc -l)
+ fi
echo -n " "
Please sign in to comment.
Something went wrong with that request. Please try again.