Don't backup nss.conf on upgrade with the switch to mod_ssl

This is because if backed up it may contain IPA-specific entries
like an import of ipa-rewrite.conf that on uninstall won't exist
and this will keep Apache from restarting.

We already have a backup of nss.conf from pre-install. Stick with
that.

Related: https://pagure.io/freeipa/issue/3757
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Rob Crittenden 2017-12-05 15:02:12 -05:00 committed by Stanislav Laznicka
parent 4596674481
commit 5531c9f26b
No known key found for this signature in database
GPG Key ID: C98C414936B1A7F3

View File

@ -212,7 +212,6 @@ class HTTPInstance(service.Service):
# There is no safe way to co-exist since there is no safe port
# to make mod_nss use, disable it completely.
if os.path.exists(paths.HTTPD_NSS_CONF):
self.fstore.backup_file(paths.HTTPD_NSS_CONF)
installutils.remove_file(paths.HTTPD_NSS_CONF)
def set_mod_ssl_protocol(self):