diff options
author | Jeremy Katz <katzj@redhat.com> | 2009-05-27 12:32:36 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2009-05-27 13:39:52 -0400 |
commit | 1a925e06c7579aae92cfb47eb0cf7279aeaa8e3b (patch) | |
tree | 36dd0d82a9988f75ed27dfc1e07ffa3edb1955a4 /firewall.py | |
parent | c4fe97cde2df3e2ae857695ef7ddf4b481d6ddb0 (diff) | |
download | anaconda-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.py | 2 |
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") |