new commit
This commit is contained in:
parent
54d36bed58
commit
617a81c439
|
@ -25,10 +25,10 @@ BINARYPTH = "/fusato/config/includes.binary"
|
||||||
BOOTSTRAP = "/fusato/config/includes.bootstrap"
|
BOOTSTRAP = "/fusato/config/includes.bootstrap"
|
||||||
FUSATOCONFIG = "/fusato/config"
|
FUSATOCONFIG = "/fusato/config"
|
||||||
BASE_CONFIG = {
|
BASE_CONFIG = {
|
||||||
"debian": {
|
"debsrv": {
|
||||||
"scripts_dir": "/server/scripts/debian/",
|
"scripts_dir": "/server/scripts/debian/",
|
||||||
},
|
},
|
||||||
"devuan": {
|
"devsrv": {
|
||||||
"scripts_dir": "/server/scripts/devuan/",
|
"scripts_dir": "/server/scripts/devuan/",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -315,11 +315,11 @@ def mini_shared_installer_files():
|
||||||
|
|
||||||
class ServerConfigFiles:
|
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):
|
def __init__(self,sbase,sarch):
|
||||||
logger.info("Copy Hooks Files")
|
logger.info("Copy server configuration files")
|
||||||
self.sbase = sbase
|
self.sbase = sbase
|
||||||
self.sarch = sarch
|
self.sarch = sarch
|
||||||
|
|
||||||
|
@ -380,9 +380,8 @@ class ServerConfigFiles:
|
||||||
|
|
||||||
# Exemplo de uso:
|
# Exemplo de uso:
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Suponha que `build_base` é uma instância válida de BuildBase
|
sbase = build_base.sbase
|
||||||
sbase = build_base.sbase # Usando a sbase de BuildBase
|
sarch = build_base.sarch
|
||||||
sarch = build_base.sarch # Usando a sarch de BuildBase
|
|
||||||
server_config_files = ServerConfigFiles(sbase, sarch, build_base)
|
server_config_files = ServerConfigFiles(sbase, sarch, build_base)
|
||||||
|
|
||||||
class ArchitectureFiles:
|
class ArchitectureFiles:
|
||||||
|
|
Loading…
Reference in New Issue