From 0871e51fcf371327d570d32d59830f87c35a9ec9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20P=C3=A9rennou=20=28Viveris=20Technologie=29?= Date: Wed, 11 Feb 2015 15:44:43 +0100 Subject: [PATCH] Add integratin network support --- master/opt/cluster/bin/sync_master.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/master/opt/cluster/bin/sync_master.sh b/master/opt/cluster/bin/sync_master.sh index 08298ad..62936aa 100755 --- a/master/opt/cluster/bin/sync_master.sh +++ b/master/opt/cluster/bin/sync_master.sh @@ -65,6 +65,20 @@ check chmod go-rwx $MASTERREP/root/.ssh/id_rsa check chmod go-rwx $MASTERREP/opt/cluster/slave/root/.ssh check chmod go-rwx $MASTERREP/opt/cluster/slave/root/.ssh/id_rsa check chmod a+rwx $MASTERREP/opt/tftp -check rsync -va --no-o --no-g ~/debian6500/master/ root@$HOST:/ +if [ "$(hostname)" = 'clovis53' ]; then + REMOTE_FS="root@$HOST:/" +else + REMOTE_FS="/tmp/$USERNAME$$" + mkdir $REMOTE_FS + case "$HOST" in + alpha) SENSOR_PORT="2222";; + gamma) SENSOR_PORT="2224";; + clovis) SENSOR_PORT="2223";; + *) fail "Incorrect name of sensor"; exit 1;; + esac + sshfs -p $SENSOR_PORT root@clovis53:/ $REMOTE_FS +fi +check rsync -va --no-o --no-g $MASTERREP/ $REMOTE_FS +fusermount -u $REMOTE_FS 2>/dev/null && rmdir $REMOTE_FS exit 0 -- 2.30.2