From d699d0aacb662dc8746d7730665c0341a963f316 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 2 Nov 2023 18:40:19 -0500 Subject: [PATCH] Update profile import The code that imports the profiles into database during installation has been moved such that it only runs if database setup is enabled. --- .../pki/server/deployment/scriptlets/configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/server/python/pki/server/deployment/scriptlets/configuration.py b/base/server/python/pki/server/deployment/scriptlets/configuration.py index 5c1257c84a5..dde1bf7571f 100644 --- a/base/server/python/pki/server/deployment/scriptlets/configuration.py +++ b/base/server/python/pki/server/deployment/scriptlets/configuration.py @@ -136,11 +136,11 @@ def spawn(self, deployer): deployer.setup_database(subsystem, master_config) - subsystem.load() + if not clone and subsystem.type == 'CA': + subsystem.import_profiles( + input_folder='/usr/share/pki/ca/profiles/ca') - if not clone and subsystem.type == 'CA': - subsystem.import_profiles( - input_folder='/usr/share/pki/ca/profiles/ca') + subsystem.load() # Check whether the subsystem uses a legacy ID generator. using_legacy_id_generator = deployer.is_using_legacy_id_generator(subsystem)