Commit b6d15e3c authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

[crans] Disclaimer

parent 90e7315d
#! /bin/sh
if [ ! -e /usr/scripts/var/encodage_scripts/$UID ]; then
cat /usr/scripts/var/encodage_scripts/disclaimer
touch /usr/scripts/var/encodage_scripts/$UID
else
# 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 "$@"
trucmuche=$?
[ $trucmuche -eq 0 ] || LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/ldap_crans.py --zombielock
exit $(($trucmuche + $?))
fi;
#! /bin/bash
if [ ! -e /usr/scripts/var/glissantes_ok/$EUID ]; then
cat /usr/scripts/var/glissantes_ok/disclaimer
read a
touch /usr/scripts/var/glissantes_ok/$EUID
fi
# 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 "$@"
trucmuche=$?
[ $trucmuche -eq 0 ] || LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/ldap_crans.py --zombielock
exit $(($trucmuche + $?))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment