#!/bin/bash set -o errexit -o nounset TOP_DIR=$(cd "$(dirname "$0")/.." && pwd) source "$TOP_DIR/config/paths" source "$CONFIG_DIR/deploy.osbash" source "$OSBASH_LIB_DIR/functions-host.sh" # Get remote ssh port of target node (VM_SSH_PORT) source "$CONFIG_DIR/config.controller" if [ $# -eq 0 ]; then echo "Purpose: Copy one script to target node and execute it via ssh." echo "Usage: $0