#2561 - Fixed issue relating to no access to software manager from inside service during install

This commit is contained in:
Chris McCarthy
2024-05-20 16:16:19 +01:00
parent 7a404773ac
commit 18c837ff0e

View File

@@ -49,9 +49,10 @@ class DatabaseService(Service):
Installs an instance of FTPClient on the Node to enable database backup if it isn't installed already. Installs an instance of FTPClient on the Node to enable database backup if it isn't installed already.
""" """
super().install() super().install()
if not self.software_manager.software.get("FTPClient"):
self.sys_log.info(f"{self.name}: Installing FTPClient to enable database backups") if not self.parent.software_manager.software.get("FTPClient"):
self.software_manager.install(FTPClient) self.parent.sys_log.info(f"{self.name}: Installing FTPClient to enable database backups")
self.parent.software_manager.install(FTPClient)
def configure_backup(self, backup_server: IPv4Address): def configure_backup(self, backup_server: IPv4Address):
""" """