[mail-all.py] commit
darcs-hash:20090520175028-bd074-646410a570866dd5bd541f9bebc534c991dd42b8.gz
This commit is contained in:
parent
4c5102e026
commit
8e2ef45476
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ def reload_postfix():
|
|||
def reconf_postfix():
|
||||
# Est-ce qu'on est sur rouge ?!
|
||||
if socket.gethostname() != "rouge":
|
||||
print u"Il y a trop de destinataires, il faut se logger sur rouge pour lever\n(temporairement) la limite."
|
||||
print u"Il y a trop de destinataires, il faut se logger sur redisdead pour lever\n(temporairement) la limite."
|
||||
sys.exit(1)
|
||||
|
||||
conf_fd = open (POSTFIX_CONF, 'r')
|
||||
|
@ -110,8 +110,8 @@ par le script.
|
|||
time.sleep(3) # On dort un peu, ctrl-c welcome
|
||||
|
||||
limit="no"
|
||||
if card >= 10:
|
||||
(limit, backup_conf) = reconf_postfix()
|
||||
# if card >= 10:
|
||||
# (limit, backup_conf) = reconf_postfix()
|
||||
|
||||
# Il faudra quoiqu'il arrive rétablir la conf de postfix
|
||||
# try capture-t-il les SIGTERM ?!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue