le --zombielock automatique avait toujours $?=1
This commit is contained in:
parent
736af563d7
commit
38a839985a
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ if [ ! -e /usr/scripts/var/encodage_scripts/$UID ]; then
|
|||
cat /usr/scripts/var/encodage_scripts/disclaimer
|
||||
touch /usr/scripts/var/encodage_scripts/$UID
|
||||
else
|
||||
LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/gest_crans.py "$@"
|
||||
[ $? -ne 0 ] && LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/ldap_crans.py --zombielock
|
||||
|
||||
# Si le script sort avec une erreur, on purge les locks deads
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue