blob: 490ad1c4960c241dc61794461cea4edc2f45c340 [file] [log] [blame]
Thomas Vachuskaa1d20e22018-12-13 09:43:18 -08001#!/bin/bash
2#-------------------------------------------------------------------------------
3# Utility to set OpenJDK 11 as a default on all cell machines.
4#-------------------------------------------------------------------------------
5
6nodes="${1:-$OCN $ONOS_INSTANCES $ONOS_CORES}"
7
8for node in $nodes; do
9 echo $node:
10 ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@$node "
11 sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
Thomas Vachuskab74fef22018-12-14 15:59:56 -080012 echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' >> .bash_aliases
Thomas Vachuskaa1d20e22018-12-13 09:43:18 -080013 "
14done