le --zombielock automatique avait toujours $?=1

This commit is contained in:
Vincent Le Gallic 2013-09-12 10:03:03 +02:00
parent 736af563d7
commit 38a839985a

View file

@ -4,7 +4,7 @@ if [ ! -e /usr/scripts/var/encodage_scripts/$UID ]; then
cat /usr/scripts/var/encodage_scripts/disclaimer cat /usr/scripts/var/encodage_scripts/disclaimer
touch /usr/scripts/var/encodage_scripts/$UID touch /usr/scripts/var/encodage_scripts/$UID
else else
LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/gest_crans.py "$@" # Si le script sort avec une erreur, on purge les locks deads
[ $? -ne 0 ] && LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/ldap_crans.py --zombielock LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/gest_crans.py "$@" \
|| LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/ldap_crans.py --zombielock
fi; fi;