Thomas Vachuska | 9ccb5fa | 2019-06-18 18:00:08 -0700 | [diff] [blame] | 1 | #!/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 | |
| 9 | for 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 | " |
| 15 | done |