refs #401 adds glob function to cloning engine
parent
a34a2c0b0d
commit
50be00d01d
|
@ -590,10 +590,14 @@ def copyClientFiles():
|
||||||
errstatus = 1
|
errstatus = 1
|
||||||
|
|
||||||
echoAndLog(f"{copyClientFiles.__name__}(): Copying OpenGnsys Cloning Engine files.")
|
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"])
|
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:
|
if cp_engine_process.returncode != 0:
|
||||||
errorAndLog(f"{copyClientFiles.__name__}(): error while copying engine files")
|
errorAndLog(f"{copyClientFiles.__name__}(): error while copying engine files: {file}")
|
||||||
errstatus = 1
|
errstatus = 1
|
||||||
|
|
||||||
if errstatus == 0:
|
if errstatus == 0:
|
||||||
|
@ -603,7 +607,6 @@ def copyClientFiles():
|
||||||
|
|
||||||
return errstatus
|
return errstatus
|
||||||
|
|
||||||
|
|
||||||
# Configuración básica de servicios de OpenGnsys
|
# Configuración básica de servicios de OpenGnsys
|
||||||
|
|
||||||
def cidr2mask(bits):
|
def cidr2mask(bits):
|
||||||
|
|
Loading…
Reference in New Issue