diff options
author | ramon <ramongomez@us.es> | 2012-05-23 11:46:22 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-05-23 11:46:22 +0000 |
commit | 61ca7f4076e58b83c35bf20858947ba8405a8cf6 (patch) | |
tree | 3933d584a6d205344e349d6f18a1cd7ecadc46fd /server/bin/setsmbpass | |
parent | f6611e310755649bb72065b842b946e6476e5353 (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-x | server/bin/setsmbpass | 5 |
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." |