Sort un code de retour non null en cas de version disponible

This commit is contained in:
François Poulain 2021-01-18 14:57:42 +01:00
parent affb332493
commit 3a64cd7119

View File

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