summaryrefslogtreecommitdiffstats
path: root/firewall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-05-27 12:32:36 -0400
committerJeremy Katz <katzj@redhat.com>2009-05-27 13:39:52 -0400
commit1a925e06c7579aae92cfb47eb0cf7279aeaa8e3b (patch)
tree36dd0d82a9988f75ed27dfc1e07ffa3edb1955a4 /firewall.py
parentc4fe97cde2df3e2ae857695ef7ddf4b481d6ddb0 (diff)
downloadanaconda-1a925e06c7579aae92cfb47eb0cf7279aeaa8e3b.tar.gz
anaconda-1a925e06c7579aae92cfb47eb0cf7279aeaa8e3b.tar.xz
anaconda-1a925e06c7579aae92cfb47eb0cf7279aeaa8e3b.zip
Don't write out firewall settings if they already exist (#502479)
livecds could already have custom firewall settings, so let's not overwrite them for now
Diffstat (limited to 'firewall.py')
-rw-r--r--firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/firewall.py b/firewall.py
index bc45cb54c..1f08ef8e0 100644
--- a/firewall.py
+++ b/firewall.py
@@ -73,7 +73,7 @@ class Firewall:
args = [ "--quiet", "--nostart", "-f" ] + self.getArgList()
try:
- if not flags.test:
+ if not flags.test and not os.path.exists("%s/etc/sysconfig/iptables" %(instPath,)):
iutil.execWithRedirect("/usr/sbin/lokkit", args,
root=instPath, stdout="/dev/null",
stderr="/dev/null")