From: Thomas PĂ©rennou (Viveris Technologie) Date: Wed, 11 Feb 2015 14:44:43 +0000 (+0100) Subject: Add integratin network support X-Git-Tag: debian_7.8.1~11^2 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=0871e51fcf371327d570d32d59830f87c35a9ec9;p=debian6500.git Add integratin network support --- 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