refs #401 adds glob function to cloning engine
parent
a34a2c0b0d
commit
50be00d01d
|
@ -590,11 +590,15 @@ def copyClientFiles():
|
|||
errstatus = 1
|
||||
|
||||
echoAndLog(f"{copyClientFiles.__name__}(): Copying OpenGnsys Cloning Engine files.")
|
||||
subprocess.run(["mkdir", "-p", f"{INSTALL_TARGET}/client/lib/engine/bin"])
|
||||
cp_engine_process = subprocess.run(["cp", "-a", f"{WORKDIR}/ogboot/client/engine/*.lib*", f"{INSTALL_TARGET}/client/lib/engine/bin"])
|
||||
if cp_engine_process.returncode != 0:
|
||||
errorAndLog(f"{copyClientFiles.__name__}(): error while copying engine files")
|
||||
errstatus = 1
|
||||
|
||||
engine_files = glob.glob(f"{WORKDIR}/ogboot/client/engine/*.lib*")
|
||||
|
||||
# Copiar cada archivo individualmente
|
||||
for file in engine_files:
|
||||
cp_engine_process = subprocess.run(["cp", "-a", file, f"{INSTALL_TARGET}/client/lib/engine/bin"])
|
||||
if cp_engine_process.returncode != 0:
|
||||
errorAndLog(f"{copyClientFiles.__name__}(): error while copying engine files: {file}")
|
||||
errstatus = 1
|
||||
|
||||
if errstatus == 0:
|
||||
echoAndLog(f"{copyClientFiles.__name__}(): client copy files success.")
|
||||
|
@ -603,7 +607,6 @@ def copyClientFiles():
|
|||
|
||||
return errstatus
|
||||
|
||||
|
||||
# Configuración básica de servicios de OpenGnsys
|
||||
|
||||
def cidr2mask(bits):
|
||||
|
|
Loading…
Reference in New Issue