Ajout des statistiques au RA

This commit is contained in:
François Poulain 2021-01-30 15:02:46 +01:00
parent 3a64cd7119
commit 93fb2860af

View File

@ -24,6 +24,8 @@
LOG_PREFIX="/var/log/apache2/benevalibre.chapril.org/benevalibre.chapril.org"
SERVICE_NAME="benevalibre.chapril.org"
APPLICATION_USER="www-data"
APPLICATION_PATH="$(getent passwd $APPLICATION_USER | cut -d: -f6)/benevalibre.chapril.org/benevalibre"
source "/etc/benevalibre.chapril.org/benevalibrechaprilorg.conf"
@ -94,6 +96,17 @@ generateSpecificReport()
echo
}
#
generateBenevalibreStats()
{
echo "=§= Éléments statistiques"
echo
sudo -u $APPLICATION_USER $APPLICATION_PATH/venv/bin/python $APPLICATION_PATH/manage.py dump_stats
echo
}
#
generateReport()
{
@ -103,6 +116,7 @@ generateReport()
echo
generateHTTPReport "$1" "$2" "$3"
generateSpecificReport "$1" "$2" "$3"
generateBenevalibreStats
}