Ajout stats colibri au rapport mensuel

This commit is contained in:
David 2022-12-25 23:15:03 +01:00
parent 093e02e6fd
commit 1681f916f5

View File

@ -94,6 +94,29 @@ generateSpecificReport()
echo 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() generateReport()
{ {
@ -103,6 +126,7 @@ generateReport()
echo echo
generateHTTPReport "$1" "$2" "$3" generateHTTPReport "$1" "$2" "$3"
generateSpecificReport "$1" "$2" "$3" generateSpecificReport "$1" "$2" "$3"
generateColibriReport "$1" "$2" "$3"
} }