From fd0dd3e6d91463557e78585abd14e5d787dde17e Mon Sep 17 00:00:00 2001 From: bernat Date: Fri, 10 Sep 2004 20:21:07 +0200 Subject: [PATCH] Firewall en dernier darcs-hash:20040910182107-d1718-f57b3f984c091e914baad60bd2b4fc53ce140e59.gz --- gestion/gen_confs/generate.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gestion/gen_confs/generate.py b/gestion/gen_confs/generate.py index 22039f70..91faab0b 100755 --- a/gestion/gen_confs/generate.py +++ b/gestion/gen_confs/generate.py @@ -148,13 +148,6 @@ if gethostname().split(".")[0] == 'zamok': # On va donc la lire une seule fois pour leur passer ensuite restartlater = [] - if 'firewall' in to_do.keys() : - # Quand sila et komaz liront la base LDAP - # db.services_to_restart('firewall-komaz') - # db.services_to_restart('firewall-sila') - from gen_confs.firewall import firewall - inst.append([firewall(),"firewall"]) - if 'dns' in to_do.keys() : from gen_confs.bind import dns inst.append([dns(),"dns"]) @@ -163,6 +156,13 @@ if gethostname().split(".")[0] == 'zamok': from gen_confs.dhcpd import dhcp inst.append([dhcp(),"dhcp"]) + if 'firewall' in to_do.keys() : + # Quand sila et komaz liront la base LDAP + # db.services_to_restart('firewall-komaz') + # db.services_to_restart('firewall-sila') + from gen_confs.firewall import firewall + inst.append([firewall(),"firewall"]) + # On indique que les services seront a priori redemarrés if auto : for i in inst: