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',