summaryrefslogtreecommitdiffstats
path: root/server/bin/setsmbpass
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-05-23 11:46:22 +0000
committerramon <ramongomez@us.es>2012-05-23 11:46:22 +0000
commit61ca7f4076e58b83c35bf20858947ba8405a8cf6 (patch)
tree3933d584a6d205344e349d6f18a1cd7ecadc46fd /server/bin/setsmbpass
parentf6611e310755649bb72065b842b946e6476e5353 (diff)
Versión 1.0.4, #531: Mantener copia actualizada del Initrd al cambiar la clave de acceso del cliente.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3072 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/setsmbpass')
-rwxr-xr-xserver/bin/setsmbpass5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass
index c3625b5e..b678ce91 100755
--- a/server/bin/setsmbpass
+++ b/server/bin/setsmbpass
@@ -11,7 +11,8 @@
PROG=$(basename $0)
OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"}
SAMBAUSER="opengnsys" # Usuario por defecto.
-CLIENTINITRD=$OPENGNSYS/tftpboot/ogclient/oginitrd.img
+TFTPDIR=$OPENGNSYS/tftpboot
+CLIENTINITRD=$TFTPDIR/ogclient/oginitrd.img
TMPDIR=/tmp/ogclient$$
# Control básico de errores.
@@ -59,6 +60,8 @@ if [ -r $CLIENTINITRD ]; then
fi
rm -fr $TMPDIR
md5sum $CLIENTINITRD | cut -f1 -d" " > $CLIENTINITRD.sum
+ cp -a $CLIENTINITRD $TFTPDIR
+ cp -a $CLIENTINITRD.sum $TFTPDIR
else
SAMBAPASS="og" # Clave por defecto.
echo "$PROG: Aviso: no se ha modificado la clave del cliente."