blob: 47f70cf6ca52526d12e2a2e839b8f3ab3190ee83 [file] [log] [blame]
#!/bin/bash
#-------------------------------------------------------------------------------
# Utility to set OpenJDK 11 as a default on all cell machines.
#-------------------------------------------------------------------------------
nodes="${1:-$OCN $ONOS_INSTANCES $ONOS_CORES}"
for node in $nodes; do
echo $node:
ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@$node "
sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' > .bash_aliases
"
done