From 84c2b04c9c6ac13cc4496cb002446221e90a921d Mon Sep 17 00:00:00 2001 From: Marco Fargetta Date: Thu, 14 Dec 2023 13:37:53 +0100 Subject: [PATCH] Fix the update to 11.0.5 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 `/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. --- base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py b/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py index 91c74b7cf4e..a90acd15cd4 100644 --- a/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py +++ b/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py @@ -20,12 +20,11 @@ def __init__(self): 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()