blob: fd31de19f522d3538577ecdbe9e9a7a6ec116ee2 [file] [log] [blame]
Thomas Vachuskaa132e3a2015-02-21 01:53:14 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Remotely pushes bits to all remote nodes in preparation for install.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9node=${1:-$OCT}
10remote=$ONOS_USER@$node
11shift
12
13echo "Pushing to proxy $node..."
14onos-push-bits $node
15
16others=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
17
18for other in $others; do
19 echo "Pushing to $other..."
20 ssh $remote "scp $ONOS_TAR $ONOS_USER@$other:$ONOS_TAR"
21done