mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05:00
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:
1 parent
a3d077443f
commit
5762ad951f
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user