Versión 1.0.5, #565: Crear credenciales para acceso Rsync iguales a las de Samba.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3466 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
ramon 2012-12-13 13:25:47 +00:00
parent e70925afeb
commit 4666588a04
2 changed files with 7 additions and 0 deletions

View File

@ -925,6 +925,9 @@ function rsyncConfigure()
# Habilitar Rsync y reiniciar Inetd.
if [ -n "$RSYNCSERV" ]; then
if [ -f /etc/default/rsync ]; then
perl -pi -e 's/RSYNC_ENABLE=.*/RSYNC_ENABLE=inetd/' /etc/default/rsync
fi
service=$RSYNCSERV $ENABLESERVICE
service=$INETDSERV $STARTSERVICE
fi

View File

@ -56,6 +56,10 @@ 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.
find . | cpio -H newc -oa | gzip -9c > $CLIENTINITRD
else