blob: 7d5ec0813e56baed457f90db29d0eea3f57e3132 [file] [log] [blame]
Thomas Vachuska9ccb5fa2019-06-18 18:00:08 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Tool to set JDK11 as the default JDK on all machines of borrowed test cell.
4# -----------------------------------------------------------------------------
5
6# Check environment
7[ -z "$ONOS_INSTANCES" ] && echo "Cell environment not established" && exit 1
8
9for n in $ONOS_INSTANCES $ONOS_CORES; do
10 echo $n:
11 ssh sdn@$n "
12 sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
13 echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' > .bash_aliases
14 "
15done