diff --git a/python_modules/infra.py b/python_modules/infra.py index 227214a6..be34986c 100644 --- a/python_modules/infra.py +++ b/python_modules/infra.py @@ -25,10 +25,10 @@ BINARYPTH = "/fusato/config/includes.binary" BOOTSTRAP = "/fusato/config/includes.bootstrap" FUSATOCONFIG = "/fusato/config" BASE_CONFIG = { - "debian": { + "debsrv": { "scripts_dir": "/server/scripts/debian/", }, - "devuan": { + "devsrv": { "scripts_dir": "/server/scripts/devuan/", } } @@ -315,11 +315,11 @@ def mini_shared_installer_files(): class ServerConfigFiles: """ - Class to handle copying server configuration files based on the sbase. + Class to handle copying server configuration files. """ def __init__(self,sbase,sarch): - logger.info("Copy Hooks Files") + logger.info("Copy server configuration files") self.sbase = sbase self.sarch = sarch @@ -380,9 +380,8 @@ class ServerConfigFiles: # Exemplo de uso: if __name__ == "__main__": - # Suponha que `build_base` é uma instância válida de BuildBase - sbase = build_base.sbase # Usando a sbase de BuildBase - sarch = build_base.sarch # Usando a sarch de BuildBase + sbase = build_base.sbase + sarch = build_base.sarch server_config_files = ServerConfigFiles(sbase, sarch, build_base) class ArchitectureFiles: