Skip to content

Commit

Permalink
Revert "Updated java version to java17 (#189)"
Browse files Browse the repository at this point in the history
This reverts commit ef728f3.
  • Loading branch information
NehaNaithani authored Feb 12, 2024
1 parent 1aa77de commit 70fcd14
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 193 deletions.
15 changes: 10 additions & 5 deletions assets/agent/install_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@ do_install_java() {
case "$lsb_dist" in
ubuntu)
$sh_c "apt-get update -y"
$sh_c "apt install -y openjdk-17-jdk"
$sh_c "apt install -y openjdk-11-jdk"
;;
debian|mendel)
$sh_c "apt-get update"
$sh_c "apt install -y openjdk-17-jdk"
$sh_c "apt install -y openjdk-11-jdk"
;;
raspbian)
$sh_c "apt-get update"
$sh_c "apt-get install openjdk-17-jdk -y"
if [ "$os_arch" = "32" ]; then
$sh_c "apt-get update"
$sh_c "apt-get install openjdk-8-jdk -y"
else
$sh_c "apt-get update"
$sh_c "apt install -y openjdk-11-jdk"
fi
;;
fedora|centos)
$sh_c "yum install -y java-17-openjdk"
$sh_c "yum install -y java-11-openjdk"
;;
esac
}
Expand Down
Loading

0 comments on commit 70fcd14

Please sign in to comment.