Ajout des statistiques au RA
This commit is contained in:
parent
3a64cd7119
commit
93fb2860af
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user