[gen_confs/adherents.py] On évite d'utiliser les expressions rationnelles inutilement
Ignore-this: 9f299c028b56da1b25cfe0dbf972b938 darcs-hash:20090904050342-ffbb2-9664d2aef6cb4b58b673fad8cece2f7916cf20d1.gz
This commit is contained in:
parent
571c5bc959
commit
6993990fdd
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: iso-8859-15 -*-
|
||||
|
||||
import sys, signal, os, re
|
||||
import sys, signal, os
|
||||
|
||||
# Imports pour LDAP
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
|
@ -203,9 +203,9 @@ class droits_openbsd(droits) :
|
|||
#On conserve le shell
|
||||
#Il faut ôter les emplacements spécifique à linux (type
|
||||
#/usr/bin/zsh)
|
||||
if re.search("zsh",a._data['loginShell'][0]):
|
||||
if "zsh" in a._data['loginShell'][0]:
|
||||
shell = "/bin/zsh"
|
||||
elif re.search("bash",a._data['loginShell'][0]):
|
||||
elif "bash" in a._data['loginShell'][0]:
|
||||
shell = "/bin/bash"
|
||||
else:
|
||||
shell = "/bin/zsh"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue