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