Server Upgrade: backup CS.cfg when dogtag is turned off

Is unable to made CS.cfg when dogtag is running.

https://fedorahosted.org/freeipa/ticket/5287

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti committed 2015-09-11 13:54:25 +02:00
1 parent a3d077443f
commit 5762ad951f
1 file changed
+4 -1
+4 -1
View File
@@ -1355,10 +1355,13 @@ def upgrade_configuration():
sub_dict['SUBJECT_BASE'] = subject_base
ca = cainstance.CAInstance(api.env.realm, certs.NSS_DIR)
ca.backup_config()
with installutils.stopped_service(configured_constants.SERVICE_NAME,
configured_constants.PKI_INSTANCE_NAME):
# Dogtag must be stopped to be able to backup CS.cfg config
ca.backup_config()
# migrate CRL publish dir before the location in ipa.conf is updated
ca_restart = migrate_crl_publish_dir(ca)