Skip to content

Commit

Permalink
Zulu repo (openhab#491)
Browse files Browse the repository at this point in the history
* Remove unused Java installation code

Signed-off-by: Elias Gabrielsson <[email protected]>

* Base Zulu Java installation on distrubition

Resolves openhab#368

Signed-off-by: Elias Gabrielsson <[email protected]>
  • Loading branch information
EliasGabrielsson authored and mstormi committed Jan 3, 2019
1 parent c3249d5 commit fb9d601
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions/java-jre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ java_zulu_embedded_archive() {
if is_arm; then arch="[arch=armhf]"; fi
cond_redirect apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 219BD9C9
if [ $? -ne 0 ]; then echo "FAILED (keyserver)"; exit 1; fi
echo "deb $arch http://repos.azulsystems.com/debian stable main" > /etc/apt/sources.list.d/zulu-embedded.list
if is_ubuntu; then
echo "deb $arch http://repos.azulsystems.com/ubuntu stable main" > /etc/apt/sources.list.d/zulu-embedded.list
else
echo "deb $arch http://repos.azulsystems.com/debian stable main" > /etc/apt/sources.list.d/zulu-embedded.list
fi
if is_pine64; then cond_redirect dpkg --add-architecture armhf; fi
cond_redirect apt update
if is_arm; then
Expand Down

0 comments on commit fb9d601

Please sign in to comment.