refs #1200 changes opengnsys permissions to client_log

ogboot-log 0.5.4
Luis Gerardo Romero Garcia 2024-12-03 13:48:45 +01:00
parent bb91f35dd5
commit da0026324c
1 changed files with 1 additions and 0 deletions

View File

@ -491,6 +491,7 @@ def copyClientFiles():
os.makedirs(os.path.join(INSTALL_OGBOOT_TARGET, "client_log"), mode=0o775, exist_ok=True)
# Change ownership of INSTALL_OGBOOT_TARGET/client/ and its contents
subprocess.run(f"chown -R opengnsys:opengnsys {INSTALL_OGBOOT_TARGET}/client/", shell=True, text=True, capture_output=True)
subprocess.run(f"chown -R opengnsys:opengnsys {INSTALL_OGBOOT_TARGET}/client_log/", shell=True, text=True, capture_output=True)
except Exception as e:
logger.error(f"Error creating ogAdmClient.cfg: {e}")