blob: 99588c3c5c42bc8f22520a250444549d3ff846a7 [file] [log] [blame]
tom5c255702014-09-18 06:57:39 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
tom1a2908c2014-09-23 16:37:39 -07003# Remotely stops & uninstalls ONOS on the specified node.
tom5c255702014-09-18 06:57:39 -07004#-------------------------------------------------------------------------------
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
11ssh $remote "
tom0eaa97f2014-09-22 16:13:06 -070012 sudo service onos stop 1>/dev/null 2>/dev/null
tom5c255702014-09-18 06:57:39 -070013 sudo rm -fr $ONOS_INSTALL_DIR
14"