Regle le prb avec dialogrc et l'env
This commit is contained in:
parent
28cfce0916
commit
1eed679e40
4 changed files with 13 additions and 15 deletions
|
@ -28,17 +28,15 @@ from CPS import TailCall, tailcaller, Continue, TailCaller
|
|||
|
||||
class Dialog(CPS.Dialog):
|
||||
def __init__(self, debug_enable=False, ldap_test=False, custom_user=None):
|
||||
# if os.path.exists(os.path.expanduser('~/.dialogrc')):
|
||||
if True:
|
||||
dialogrc='~/.dialogrc'
|
||||
else:
|
||||
dialogrc=False
|
||||
super(Dialog, self).__init__(debug_enable=debug_enable, dialogrc=dialogrc)
|
||||
super(Dialog, self).__init__()
|
||||
# On initialise le moteur de rendu en spécifiant qu'on va faire du dialog
|
||||
printing.template(dialog=True)
|
||||
self.ldap_test = ldap_test
|
||||
self.custom_user = custom_user
|
||||
self.check_ldap()
|
||||
login = self.conn.current_login
|
||||
dialogrc='/home/%s/.dialogrc' % login
|
||||
super(Dialog, self).__init__(debug_enable=debug_enable, dialogrc=dialogrc)
|
||||
|
||||
def has_right(self, liste, obj=None):
|
||||
"""Vérifie que l'un des droits de l'utilisateur courant est inclus dans list"""
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 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 + $?))
|
||||
|
||||
LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/gest_crans_lc.py "$@"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
LANG=fr_FR.UTF-8 sudo -u respbats /usr/scripts/gestion/gest_crans_lc.py "$@"
|
6
respbats/crans_old
Executable file
6
respbats/crans_old
Executable file
|
@ -0,0 +1,6 @@
|
|||
#! /bin/bash
|
||||
# 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 + $?))
|
Loading…
Add table
Add a link
Reference in a new issue