From 66b8ecc77f1229b2d331d3a8b833b80003d77cf8 Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sun, 5 May 2019 13:20:35 +0100 Subject: [PATCH] Resolve Java on buster. --- dietpi/dietpi-software | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 8c4bd46a35..c2ccd14f18 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -6660,7 +6660,10 @@ Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix else - local packages='ca-certificates-java openjdk-8-jre-headless openjdk-8-jdk-headless' + local version=8 + (( $G_DISTRO == 5 )) && version=11 + + local packages="ca-certificates-java openjdk-$version-jre-headless openjdk-$version-jdk-headless" # Workaround for ARM install issue: https://github.com/MichaIng/DietPi/issues/2524 apt-get install -y -qq $packages G_AGI $packages