From 1681f916f5ffbcb2aaa4ab4555b63a0e6024dc5d Mon Sep 17 00:00:00 2001 From: David Date: Sun, 25 Dec 2022 23:15:03 +0100 Subject: [PATCH] Ajout stats colibri au rapport mensuel --- rapport_activite/rapport_activite.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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" }