Thomas Vachuska | a1d20e2 | 2018-12-13 09:43:18 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
| 3 | # Utility to set OpenJDK 11 as a default on all cell machines. |
| 4 | #------------------------------------------------------------------------------- |
| 5 | |
| 6 | nodes="${1:-$OCN $ONOS_INSTANCES $ONOS_CORES}" |
| 7 | |
| 8 | for 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 Vachuska | b74fef2 | 2018-12-14 15:59:56 -0800 | [diff] [blame^] | 12 | echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' >> .bash_aliases |
Thomas Vachuska | a1d20e2 | 2018-12-13 09:43:18 -0800 | [diff] [blame] | 13 | " |
| 14 | done |