diff options
author | John Dennis <jdennis@redhat.com> | 2007-11-28 07:49:07 -0500 |
---|---|---|
committer | John Dennis <jdennis@redhat.com> | 2007-11-28 07:49:07 -0500 |
commit | 904b76059cec667a9c155021c8e33ce1dbf2b389 (patch) | |
tree | c2f9d8ed6a2f84427dd494d3814cac77c29a34f0 /ipa-server/ipaserver/httpinstance.py | |
parent | c939c5d289daaf4c855caa2a6816e7eeba7e2661 (diff) | |
parent | 2e7f629d913d775cfb285ede166d7a0f977782fe (diff) | |
download | freeipa.git-904b76059cec667a9c155021c8e33ce1dbf2b389.tar.gz freeipa.git-904b76059cec667a9c155021c8e33ce1dbf2b389.tar.xz freeipa.git-904b76059cec667a9c155021c8e33ce1dbf2b389.zip |
merged radius work with latest mainline tip
Diffstat (limited to 'ipa-server/ipaserver/httpinstance.py')
-rw-r--r-- | ipa-server/ipaserver/httpinstance.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ipa-server/ipaserver/httpinstance.py b/ipa-server/ipaserver/httpinstance.py index 0433025b..60d33eed 100644 --- a/ipa-server/ipaserver/httpinstance.py +++ b/ipa-server/ipaserver/httpinstance.py @@ -50,13 +50,17 @@ def update_file(filename, orig, subst): else: sys.stdout.write(p.sub(subst, line)) fileinput.close() + return 0 + else: + print "File %s doesn't exist." % filename + return 1 class HTTPInstance(service.Service): def __init__(self): service.Service.__init__(self, "httpd") def create_instance(self, realm, fqdn): - self.sub_dict = { "REALM" : realm } + self.sub_dict = { "REALM" : realm, "FQDN": fqdn } self.fqdn = fqdn self.realm = realm @@ -137,4 +141,5 @@ class HTTPInstance(service.Service): def __set_mod_nss_port(self): self.step("Setting mod_nss port to 443") - update_file(NSS_CONF, '8443', '443') + if update_file(NSS_CONF, '8443', '443') != 0: + print "Updating %s failed." % NSS_CONF |