summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-04-26 17:45:02 +0000
committerramon <ramongomez@us.es>2011-04-26 17:45:02 +0000
commit154edf03d7cc6b77ce829ed8fb39955b92922451 (patch)
tree3124281234f7834a8086eb7d905ee95d0e32345d
parentf743b9cee2efe19a3f9e38091fdf402ba3d2f75d (diff)
Corregir erratas en actualizador en proceso de cambio de permisos.
git-svn-id: https://opengnsys.es/svn/trunk@1907 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xinstaller/opengnsys_installer.sh4
-rwxr-xr-xinstaller/opengnsys_update.sh10
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