refs #1200 Adds cache directory to client in installer

oglive-status-bug opengnsys_devel-0.0.18
Luis Gerardo Romero Garcia 2024-12-05 09:00:51 +01:00
parent 900d793411
commit 04916f1766
1 changed files with 2 additions and 0 deletions

View File

@ -491,6 +491,8 @@ def copyClientFiles():
os.makedirs(os.path.join(INSTALL_OGBOOT_TARGET, "client/log"), mode=0o775, exist_ok=True)
# Creamos el directorio de logs para el samba de oglog
os.makedirs(os.path.join(INSTALL_OGBOOT_TARGET, "client_log"), mode=0o775, exist_ok=True)
# Creamos el directorio de cache para el cliente
os.makedirs(os.path.join(INSTALL_OGBOOT_TARGET, "client/cache"), 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)