[generate.py] Choix du firewall en fonction du codename
Ignore-this: 6ce50e7d238c750543943e2716906447 darcs-hash:20120301221555-28565-fccf078976bf4a0b618b66719f3f69e26548747e.gz
This commit is contained in:
parent
3169b58f2e
commit
17fc5b11b1
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ import config
|
|||
import midtools
|
||||
from inspect import getargspec
|
||||
from syslog import *
|
||||
import platform
|
||||
openlog("generate")
|
||||
|
||||
# On vérifie que l'on est root
|
||||
|
@ -125,7 +126,7 @@ class base_reconfigure:
|
|||
service.reconfigure()
|
||||
|
||||
def macip(self, ips):
|
||||
if hostname in ['gordon','komaz']:
|
||||
if platform.dist()[1].startswith('wheezy'):
|
||||
import firewall_new
|
||||
firewall = firewall_new
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue