[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
This commit is contained in:
Pierre-Elliott Bécue 2012-10-31 18:12:34 +01:00
parent 823e52de6c
commit a74d31de0e
9 changed files with 9 additions and 8 deletions

View file

@ -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')
try :
s = s.strip().split('\n')
dn = s[0].split()[1]
try :
if len(s) == 2 :
cprint(u"Changement du mot de passe du club %s "%decode64(' '.join(s[1].split()[1:])), 'vert')
else :

View file

@ -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:

View file

Before

Width:  |  Height:  |  Size: 986 B

After

Width:  |  Height:  |  Size: 986 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After