refs #1435 adds engine directory to client/engine when ogboot is installed

oglive-status-bug
Luis Gerardo Romero Garcia 2025-02-03 08:51:12 +01:00
parent 600dff2b2f
commit 56482e843b
1 changed files with 8 additions and 1 deletions

View File

@ -459,12 +459,19 @@ def copyClientFiles():
logger.error(f"Error while copying client structure")
errstatus = 1
logger.info(f"Copying OpenGnsys Cloning Engine files.")
logger.info(f"Copying OpenGnsys Cloning Engine files in client library.")
os.makedirs(f"{INSTALL_OGBOOT_TARGET}/client/lib/engine/bin", mode=0o775, exist_ok=True)
if 0 != subprocess.run (['rsync', '-aH', f'{REPO_DIR}/client/engine/', f'{INSTALL_OGBOOT_TARGET}/client/lib/engine/bin/']).returncode:
logger.error(f"Error while copying engine files")
errstatus = 1
logger.info(f"Copying OpenGnsys Cloning Engine files in client engine.")
os.makedirs(f"{INSTALL_OGBOOT_TARGET}/client/engine", mode=0o775, exist_ok=True)
if 0 != subprocess.run (['rsync', '-aH', f'{REPO_DIR}/client/engine/', f'{INSTALL_OGBOOT_TARGET}/client/engine/']).returncode:
logger.error(f"Error while copying engine files")
errstatus = 1
# Creación del archivo ogAdmClient.cfg
try:
template_path = os.path.join(REPO_DIR, "etc/ogAdmClient.cfg.tmpl")