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

[Intranet] On désactive le module quota. Ah, et on committe les trucs que les...

[Intranet] On désactive le module quota. Ah, et on committe les trucs que les autres n'ont pas commité.

Ignore-this: 57875a22b7c26a01dcd51b9331c93997

darcs-hash:20121031171234-b6762-b3c312f180024717569702a58bd59ed8a3cc0a83.gz
parent 823e52de
......@@ -168,9 +168,9 @@ if __name__ == '__main__' :
cprint(u'Erreur lors de la recherche du login : plusieurs occurences !', 'rouge')
sys.exit(4)
s = s.split('\n')
s = s.strip().split('\n')
dn = s[0].split()[1]
try :
dn = s[0].split()[1]
if len(s) == 2 :
cprint(u"Changement du mot de passe du club %s "%decode64(' '.join(s[1].split()[1:])), 'vert')
else :
......
......@@ -48,12 +48,13 @@ par le script.
cprint(u"%d adhérent(s) a/ont été trouvé(s)..." % len(adherents))
time.sleep(3) # On dort un peu, ctrl-c welcome
opt = commands.getoutput("/usr/sbin/postconf smtpd_client_message_rate_limit")
limit = int(opt.split()[-1])
if limit > 0 and len(adherents) >= 10:
limit_risen = True
postconf(0)
else: limit_risen = False
# opt = commands.getoutput("/usr/sbin/postconf smtpd_client_message_rate_limit")
# limit = int(opt.split()[-1])
# if limit > 0 and len(adherents) >= 10:
# limit_risen = True
# postconf(0)
# else: limit_risen = False
limit_risen = False
try:
try:
......
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