diff --git a/gestion/gen_confs/droits.py b/gestion/gen_confs/droits.py index e5030962..0386485e 100644 --- a/gestion/gen_confs/droits.py +++ b/gestion/gen_confs/droits.py @@ -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"