File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments