Fix upgrades of selfsign server

In checking to see if the dogtag proxy configuration needed to be updated
we didn't handle the case where dogtag isn't installed at all.

https://fedorahosted.org/freeipa/ticket/1951
This commit is contained in:
Rob Crittenden 2011-10-10 10:15:41 -04:00
parent c0879cd00b
commit 5c10f66e4a

View File

@ -145,6 +145,9 @@ def upgrade_pki():
This requires enabling SSL renegotiation.
"""
if not os.path.exists('/etc/pki-ca/CS.cfg'):
return
fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore')
http = httpinstance.HTTPInstance(fstore)
http.enable_mod_nss_renegotiate()