mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
Don't try to backup CS.cfg during upgrade if CA is not configured
https://pagure.io/freeipa/issue/7409 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
parent
c9c41d2d90
commit
95a45a2b09
@ -1658,7 +1658,8 @@ def upgrade_configuration():
|
||||
|
||||
with installutils.stopped_service('pki-tomcatd', 'pki-tomcat'):
|
||||
# Dogtag must be stopped to be able to backup CS.cfg config
|
||||
ca.backup_config()
|
||||
if ca.is_configured():
|
||||
ca.backup_config()
|
||||
|
||||
# migrate CRL publish dir before the location in ipa.conf is updated
|
||||
ca_restart = migrate_crl_publish_dir(ca)
|
||||
|
Loading…
Reference in New Issue
Block a user