summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-07-28 10:27:53 +0000
committerramon <ramongomez@us.es>2011-07-28 10:27:53 +0000
commita63345ac288ba0154915e0c6ac0c1dc651462c66 (patch)
tree1eb52c89ee709254e1620dcb76f55403398de8b6 /server
parent2934e9e349c577a3372d0759b7f645be01d41fe2 (diff)
VersiĆ³n 1.0.2: actualizador recupera la clave Samba al actualizar el cliente (modifica #428).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2232 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server')
-rwxr-xr-xserver/bin/setsmbpass6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass
index dccc00b2..2c239601 100755
--- a/server/bin/setsmbpass
+++ b/server/bin/setsmbpass
@@ -27,12 +27,14 @@ fi
# Crear clave para usuario de acceso a los recursos.
if [ -r $CLIENTINITRD ]; then
- stty -echo
+ stty -echo 2>/dev/null
echo -n "Clave del usuario Samba: "
read SAMBAPASS
+ echo
echo -n "Confirmar clave: "
read SAMBAPASS2
- stty echo
+ echo
+ stty echo 2>/dev/null
if [ "$SAMBAPASS" != "$SAMBAPASS2" ]; then
echo "$PROG: Error: las claves no coinciden" >&2
exit 2