blob: c2a77f61bc76d3f70c22f73938afa6bf15c9b3ba [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Pushes the cluster key to the ONOS config directory on a remote ONOS node.
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
remote=$ONOS_USER@${1:-$OCI}
scp -q $ONOS_CLUSTER_KEY_FILE $remote:$ONOS_INSTALL_DIR/config/onos.jks