blob: d5cd5fed3ddc44fcba72075932b618433bc3bc82 [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
DongRyeol Cha5c0a9f02018-05-17 14:32:55 +09009remote=$ONOS_USER@[${1:-$OCI}]
Brian O'Connor740e98c2017-06-29 17:07:17 -070010
DongRyeol Cha5c0a9f02018-05-17 14:32:55 +090011scp -q $ONOS_CLUSTER_KEY_FILE $remote:$ONOS_INSTALL_DIR/config/onos.jks