Skip to content

Commit

Permalink
update to match step01_ubuntu18.04_java_deps.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Nov 22, 2023
1 parent 5d49df6 commit 53e96ec
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions linux/step01_ubuntu_java_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@
JAVAVER=${JAVAVER:-openjdk11}
# install java
if [ "$JAVAVER" = "openjdk1.8" ]; then
apt-get -y install software-properties-common
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
apt-get -y install openjdk-8-jre
elif [ "$JAVAVER" = "openjdk1.8-devel" ]; then
apt-get -y install software-properties-common
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
apt-get -y install openjdk-8-jdk
elif [ "$JAVAVER" = "openjdk11-devel" ]; then
apt-get -y install software-properties-common
add-apt-repository ppa:openjdk-r/ppa
apt-get update -q
apt-get install -y openjdk-11-jdk
elif [ "$JAVAVER" = "openjdk11" ]; then
#start-recommended
apt-get -y install software-properties-common
add-apt-repository ppa:openjdk-r/ppa
apt-get update -q
apt-get install -y openjdk-11-jre
apt-get install -y openjdk-11-jdk
#end-recommended
fi

0 comments on commit 53e96ec

Please sign in to comment.