#!/bin/bash

NodeList=$1
Path=`echo $0 | rev | cut -d \/ -f 2- | rev`

if [ -z ${NodeList} ]; then
    echo "Usage: " $0 "{path to file of list of nodes ip addresses}";
    exit;
fi

# Copy Dev Script Over
for x in `cat ${NodeList}`;do
    echo ---------- $x ----------
    scp ${Path}/UpgradeDevHack root@${x}:/usr/share/upgrade/event-actions/data-migration-upgrade
done;
