blob: c2a77f61bc76d3f70c22f73938afa6bf15c9b3ba [file] [log] [blame]
Brian O'Connor740e98c2017-06-29 17:07:17 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Pushes the cluster key to the ONOS config directory on a remote ONOS node.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9remote=$ONOS_USER@${1:-$OCI}
10
11scp -q $ONOS_CLUSTER_KEY_FILE $remote:$ONOS_INSTALL_DIR/config/onos.jks