diff --git a/installer/ogdhcp_installer.sh b/installer/ogdhcp_installer.sh index 4b0eb20..11f8c74 100755 --- a/installer/ogdhcp_installer.sh +++ b/installer/ogdhcp_installer.sh @@ -150,13 +150,12 @@ function createDirs() { # Mover el fichero de registro de instalación al directorio de logs. echoAndLog "${FUNCNAME}(): moving installation log file" mv "$LOG_FILE" "$path_opengnsys_base/var/log" && LOG_FILE="$OGLOGFILE" - chmod 644 "$LOG_FILE" - chmod -R 644 "$path_opengnsys_base/etc" + usermod -aG $OPENGNSYS_CLIENT_USER _kea + # Mover el fichero de registro de instalación al directorio de logs. echoAndLog "${FUNCNAME}(): moving installation log file" touch "$path_opengnsys_base/var/log/dev.log" - chmod 644 "$path_opengnsys_base/var/log/dev.log" echoAndLog "${FUNCNAME}(): directory paths created" return 0 @@ -199,7 +198,7 @@ function create_ogdhcp_project { # Asegurar que todos los usuarios puedan entrar y leer /opt/opengnsys echoAndLog "${FUNCNAME[0]}(): setting permissions for /opt/opengnsys" - sudo chmod 755 /opt/opengnsys + # sudo chmod 755 /opt/opengnsys # Crea el directorio path_opengnsys_base con el usuario opengnsys echoAndLog "${FUNCNAME}(): creating directory $path_opengnsys_base with opengnsys user"