new commit

This commit is contained in:
manuel 2024-07-15 13:11:10 +00:00
parent 54d36bed58
commit 617a81c439
1 changed files with 6 additions and 7 deletions

View File

@ -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: