Skip to content

Commit

Permalink
Fix the update to 11.5.0
Browse files Browse the repository at this point in the history
Check and create the folder for every subsystem update, beside the
instance update.

During the update certs and csr are removed from CS.cfg file and stored
in `<config>/certs` folder if they are not in the internaldb.

The folder creation for the instance was done after update the subsystem generating an error and stopping the update.
  • Loading branch information
fmarco76 committed Dec 14, 2023
1 parent a9e002f commit 38cd57c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ def __init__(self):
super().__init__()
self.message = 'Removes certs data and CSR from CS.cfg'

def upgrade_instance(self, instance):

instance.makedirs(instance.certs_dir, exist_ok=True)

def upgrade_subsystem(self, instance, subsystem):

self.backup(subsystem.cs_conf)
instance.makedirs(instance.certs_dir, exist_ok=True)

logger.info('Removing certs data')
certs = subsystem.find_system_certs()
Expand Down

0 comments on commit 38cd57c

Please sign in to comment.