mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	jdk to jre (#3319)
This commit is contained in:
		@@ -46,7 +46,7 @@ function update_script() {
 | 
			
		||||
  java_version=$(java -version 2>&1 | awk -F[\"_] '/version/ {print $2}')
 | 
			
		||||
  if [[ "$java_version" =~ ^1\.8\.* ]]; then
 | 
			
		||||
      $STD apt-get remove --purge -y zulu8-jdk
 | 
			
		||||
      $STD apt-get -y install zulu21-jdk
 | 
			
		||||
      $STD apt-get -y install zulu21-jre-headless
 | 
			
		||||
      msg_ok "Updated Azul Zulu Java to 21"
 | 
			
		||||
  else
 | 
			
		||||
      msg_ok "Azul Zulu Java 21 already installed"
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ wget -qO /etc/apt/trusted.gpg.d/zulu-repo.asc "https://keyserver.ubuntu.com/pks/
 | 
			
		||||
wget -q https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb
 | 
			
		||||
$STD dpkg -i zulu-repo_1.0.0-3_all.deb
 | 
			
		||||
$STD apt-get update
 | 
			
		||||
$STD apt-get -y install zulu21-jdk
 | 
			
		||||
$STD apt-get -y install zulu21-jre-headless
 | 
			
		||||
msg_ok "Installed Azul Zulu Java"
 | 
			
		||||
 | 
			
		||||
msg_info "Installing libssl (if needed)"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user