new commit
This commit is contained in:
parent
1757d8c4e8
commit
54d36bed58
|
@ -318,30 +318,17 @@ class ServerConfigFiles:
|
||||||
Class to handle copying server configuration files based on the sbase.
|
Class to handle copying server configuration files based on the sbase.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, sbase, sarch, build_base):
|
def __init__(self,sbase,sarch):
|
||||||
"""
|
logger.info("Copy Hooks Files")
|
||||||
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.
|
|
||||||
"""
|
|
||||||
self.sbase = sbase
|
self.sbase = sbase
|
||||||
self.sarch = sarch
|
self.sarch = sarch
|
||||||
self.build_base = build_base
|
|
||||||
self.copy_server_config_files()
|
|
||||||
|
|
||||||
def copy_server_config_files(self):
|
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()}")
|
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 = [
|
src_paths = [
|
||||||
'welcome.sh',
|
'welcome.sh',
|
||||||
'configure_apache2.sh',
|
'configure_apache2.sh',
|
||||||
|
|
Loading…
Reference in New Issue