Skip to content

Commit

Permalink
Update JDK repo
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi authored May 11, 2023
1 parent 7f9bbc0 commit e93d59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/java-jre.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ java_install() {
##
openjdk_fetch_apt() {
if ! apt-cache show "openjdk-${1}-jre-headless" &> /dev/null; then
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/java.list
echo "deb http://archive.raspberrypi.org/debian/ bullseye main" > /etc/apt/sources.list.d/java.list
cond_redirect apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
cond_redirect apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138

# important to avoid release mixing:
# prevent RPi from using the Debian distro for normal Raspbian packages
echo -e "Package: *\\nPin: release a=unstable\\nPin-Priority: 90\\n" > /etc/apt/preferences.d/limit-unstable
# echo -e "Package: *\\nPin: release a=unstable\\nPin-Priority: 90\\n" > /etc/apt/preferences.d/limit-unstable
fi
echo -n "$(timestamp) [openHABian] Fetching OpenJDK ${1}... "
if cond_redirect apt-get install --download-only --yes "openjdk-${1}-jre-headless"; then echo "OK"; else echo "FAILED"; return 1; fi
Expand Down

0 comments on commit e93d59a

Please sign in to comment.