From 54d36bed58e7bc8bd9145b783f39050f40ea7672 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 15 Jul 2024 13:05:15 +0000 Subject: [PATCH] new commit --- python_modules/infra.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/python_modules/infra.py b/python_modules/infra.py index 8b7bd581..227214a6 100644 --- a/python_modules/infra.py +++ b/python_modules/infra.py @@ -318,30 +318,17 @@ class ServerConfigFiles: Class to handle copying server configuration files based on the sbase. """ - def __init__(self, sbase, sarch, build_base): - """ - Initialize the ServerConfigFiles class. - - Args: - sbase (str): Server base (e.g., "debsrv", "devsrv"). - sarch (str): Server architecture (e.g., "64"). - build_base (BuildBase): Instance of BuildBase containing necessary context. - """ + def __init__(self,sbase,sarch): + logger.info("Copy Hooks Files") self.sbase = sbase self.sarch = sarch - self.build_base = build_base - self.copy_server_config_files() def copy_server_config_files(self): """ - Copy server configuration files based on the sbase. + Copy server configuration files . """ logger.info(f"Copying server configuration files for {self.sbase.capitalize()}") - if self.sbase not in BASE_CONFIG: - logger.error(f"Unsupported base: {self.sbase}") - return - src_paths = [ 'welcome.sh', 'configure_apache2.sh',