blob: d5cd5fed3ddc44fcba72075932b618433bc3bc82 [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