summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-09-03 15:04:35 +0200
committerPetr Viktorin <pviktori@dhcp-31-13.brq.redhat.com>2014-09-05 16:10:49 +0200
commit2ed6fb092eac2397f4d6395307c91a497d747ac0 (patch)
treee4d08490cb17ec74f90be7d3a29d104fc1803ced /install/tools
parent68d656f80a483a57f5ed80b7ead03a071abb0ef0 (diff)
downloadfreeipa-2ed6fb092eac2397f4d6395307c91a497d747ac0.tar.gz
freeipa-2ed6fb092eac2397f4d6395307c91a497d747ac0.tar.xz
freeipa-2ed6fb092eac2397f4d6395307c91a497d747ac0.zip
Backup CS.cfg before modifying it
https://fedorahosted.org/freeipa/ticket/4166 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools')
-rw-r--r--install/tools/ipa-upgradeconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/tools/ipa-upgradeconfig b/install/tools/ipa-upgradeconfig
index 9535cedd8..5dbf3087b 100644
--- a/install/tools/ipa-upgradeconfig
+++ b/install/tools/ipa-upgradeconfig
@@ -1085,6 +1085,7 @@ def main():
sub_dict['SUBJECT_BASE'] = subject_base
ca = cainstance.CAInstance(api.env.realm, certs.NSS_DIR)
+ ca.backup_config()
# migrate CRL publish dir before the location in ipa.conf is updated
ca_restart = migrate_crl_publish_dir(ca)