summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-01-29 12:11:24 +0000
committerramon <ramongomez@us.es>2013-01-29 12:11:24 +0000
commitf243a47352b8651ca2ec6dec70a546bbdbb2495f (patch)
tree536048f90018e9886b6e5189ecf01ad6dcb510ec /server
parent57f7e9c69b0f06b0cf45387b5e9fddbbea8640e4 (diff)
#565, Alonso: Configuración de RSync para imágenes diferenciales.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3504 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server')
-rwxr-xr-xserver/bin/setsmbpass13
1 files changed, 9 insertions, 4 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass
index 2d340c64..cba6f1ea 100755
--- a/server/bin/setsmbpass
+++ b/server/bin/setsmbpass
@@ -56,12 +56,17 @@ if [ -r $CLIENTINITRD ]; then
sed -i "s/OPTIONS=\(.*\)user=\w*\(.*\)pass=\w*\(.*\)/OPTIONS=\1user=$SAMBAUSER\2pass=$SAMBAPASS\3/" scripts/ogfunctions
# TEMPORAL: solución ticket 554, actualizar cliente en caché (ogLive r3257).
sed -i "s/busybox reboot/reboot/" scripts/ogfunctions
- # Ticket 565, preparar acceso Rsync.
- echo "$SAMBAUSER:$SAMBAPASS" > etc/rsync.secrets
- chown root.root etc/rsync.secrets
- chmod 400 etc/rsync.secrets
# FIN CÓDIGO TEMPORAL.
+ # Ticket 565, preparar acceso Rsync cliente.
+ echo "$SAMBAPASS" > etc/passrsync
+ chown root.root etc/passrsync
+ chmod 400 etc/passrsync
+ # Generar Initrd del cliente.
find . | cpio -H newc -oa | gzip -9c > $CLIENTINITRD
+ # Ticket 565, preparar acceso Rsync servidor.
+ echo "$SAMBAUSER:$SAMBAPASS" > /etc/rsyncd.secrets
+ chown root.root /etc/rsyncd.secrets
+ chmod 600 /etc/rsyncd.secrets
else
echo "$PROG: Aviso: no se ha modificado la clave del cliente."
fi