benevalibre.chapril.org-tools/monitoring/check_benevalibrechaprilorg_update

13 lines
290 B
Bash

#!/bin/bash
#
# Nagios plugin to check benevalibre version
#
# Author : François Poulain <fpoulain@metrodore.fr>
# Date : 12 Nov 2020
#
set -e
cd /var/www/benevalibre.chapril.org/benevalibre
sudo /var/www/benevalibre.chapril.org/benevalibre/venv/bin/python manage.py check_update
exit $?