Skip to content

Commit c3b7ace

Browse files
committed
repo für certs in jedem Fall hinterlegen
Signed-off-by: Markus Storm <markus.storm@gmx.net>
1 parent 73756a2 commit c3b7ace

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

functions/java-jre.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ adoptium_fetch_apt() {
3939

4040

4141
echo -n "$(timestamp) [openHABian] Fetching Adoptium Eclipse Temurin JDK... "
42+
if ! cond_redirect add_keys "https://packages.adoptium.net/artifactory/api/gpg/key/public" "$keyName"; then echo "FAILED (add keys)"; return 1; fi
43+
echo "deb [signed-by=/usr/share/keyrings/${keyName}.gpg] https://packages.adoptium.net/artifactory/deb ${osrelease:-bookworm} main" > /etc/apt/sources.list.d/adoptium.list
44+
4245
# if on 32 bit OS, install unsupported Adoptium 32 bit from OpenEMS community project
4346
if [[ $(getconf LONG_BIT) == 32 ]]; then
4447
if ! cond_redirect wget -nv -O "${cachedir}/${cachefile}" "${URL}/${pkgfile}"; then echo "FAILED (download JVM pkg)"; rm -f "${cachedir}/${cachefile}"; return 1; fi
4548
else
46-
if ! cond_redirect add_keys "https://packages.adoptium.net/artifactory/api/gpg/key/public" "$keyName"; then echo "FAILED (add keys)"; return 1; fi
47-
echo "deb [signed-by=/usr/share/keyrings/${keyName}.gpg] https://packages.adoptium.net/artifactory/deb ${osrelease:-bookworm} main" > /etc/apt/sources.list.d/adoptium.list
48-
4949
if ! cond_redirect apt-get update; then echo "FAILED (update apt lists)"; return 1; fi
5050
if ! cond_redirect dpkg --configure -a; then echo "FAILED (dpkg)"; return 1; fi
5151
if cond_redirect apt-get install --download-only --yes "temurin-${1}-jre"; then echo "OK"; else echo "FAILED"; return 1; fi

0 commit comments

Comments
 (0)