From 154edf03d7cc6b77ce829ed8fb39955b92922451 Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 26 Apr 2011 17:45:02 +0000 Subject: Corregir erratas en actualizador en proceso de cambio de permisos. git-svn-id: https://opengnsys.es/svn/trunk@1907 a21b9725-9963-47de-94b9-378ad31fedc9 --- installer/opengnsys_installer.sh | 4 ++-- installer/opengnsys_update.sh | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 649bb2b2..d47ea897 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -711,7 +711,7 @@ function smbConfigure() errorAndLog "${FUNCNAME}(): error while configure Samba" return 1 fi - # Crear usuario de acceso a los recursos. + # Crear clave para usuario de acceso a los recursos. echo -ne "$OPENGNSYS_CLIENT_PASSWD\n$OPENGNSYS_CLIENT_PASSWD\n" | smbpasswd -a -s $OPENGNSYS_CLIENT_USER echoAndLog "${FUNCNAME}(): Added Samba configuration." @@ -863,7 +863,7 @@ function createDirs() # Crear usuario ficticio. if id -u $OPENGNSYS_CLIENT_USER &>/dev/null; then - echoAndLog "${FUNCNAME}(): OpenGnSys user is already created" + echoAndLog "${FUNCNAME}(): user \"$OPENGNSYS_CLIENT_USER\" is already created" else echoAndLog "${FUNCNAME}(): creating OpenGnSys user" useradd $OPENGNSYS_CLIENT_USER 2>/dev/null diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index e9cf6b6f..e692ff7e 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -378,11 +378,11 @@ function createDirs() fi # Crear usuario ficticio. - if id -u $OPENGNSYS_CLIENT_USER &>/dev/null; then - echoAndLog "${FUNCNAME}(): OpenGnSys user is already created" + if id -u $OPENGNSYS_CLIENTUSER &>/dev/null; then + echoAndLog "${FUNCNAME}(): user \"$OPENGNSYS_CLIENTUSER\"is already created" else echoAndLog "${FUNCNAME}(): creating OpenGnSys user" - useradd $OPENGNSYS_CLIENT_USER 2>/dev/null + useradd $OPENGNSYS_CLIENTUSER 2>/dev/null if [ $? -ne 0 ]; then errorAndLog "${FUNCNAME}(): error creating OpenGnSys user" return 1 @@ -391,8 +391,8 @@ function createDirs() # Establecer los permisos básicos. echoAndLog "${FUNCNAME}(): setting directory permissions" - chmod -R 775 $path_opengnsys_base/{log/clients,images,tftpboot/pxelinux.cfg} - chown -R :$OPENGNSYS_CLIENT_USER $path_opengnsys_base/{log/clients,images,tftpboot/pxelinux.cfg} + chmod -R 775 $INSTALL_TARGET/{log/clients,images,tftpboot/pxelinux.cfg} + chown -R :$OPENGNSYS_CLIENTUSER $INSTALL_TARGET/{log/clients,images,tftpboot/pxelinux.cfg} if [ $? -ne 0 ]; then errorAndLog "${FUNCNAME}(): error while setting permissions" return 1 -- cgit v1.2.3-18-g5258