summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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