Skip to content

Commit

Permalink
Update profile import
Browse files Browse the repository at this point in the history
The code that imports the profiles into database during
installation has been moved such that it only runs if
database setup is enabled.
  • Loading branch information
edewata committed Nov 3, 2023
1 parent 67a3ee2 commit d699d0a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d699d0a

Please sign in to comment.