diff --git a/rapport_activite/rapport_activite.sh b/rapport_activite/rapport_activite.sh index ffa57cb..2b0f877 100755 --- a/rapport_activite/rapport_activite.sh +++ b/rapport_activite/rapport_activite.sh @@ -94,6 +94,29 @@ generateSpecificReport() echo } +# +generateColibriReport() +{ + local year="$2" + local yearMonth="$3" + local month=`echo $3 | awk -F\- '{print $2}'` + + echo "=§= Rapport d'activité jitsi-colibri" + echo + parse="/srv/visio.chapril.org/tools/statistiques/parseStats.py" + if [ -x ${parse} ];then + `${parse} ${month} ${year}` > /tmp/result + fi + if [ "x`cat /tmp/result | grep 'indisponible'`" != "x" ];then + cat /tmp/result + else + sleep 60 + `${parse}` > /tmp/result + cat /tmp/result + fi + +} + # generateReport() { @@ -103,6 +126,7 @@ generateReport() echo generateHTTPReport "$1" "$2" "$3" generateSpecificReport "$1" "$2" "$3" + generateColibriReport "$1" "$2" "$3" }