Skip to content

Commit 3981cc9

Browse files
authored
Update openhab-install.sh (#4438)
1) Update zulu repo 2) Use zulu17-jdk (previously zulu21-jdk)
1 parent 592d9d0 commit 3981cc9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install/openhab-install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ update_os
1616
msg_info "Installing Dependencies"
1717
$STD apt-get install -y \
1818
gnupg \
19+
ca-certificates \
1920
apt-transport-https
2021
msg_ok "Installed Dependencies"
2122

22-
msg_info "Installing Azul Zulu21"
23-
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc"
24-
curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb")
25-
$STD dpkg -i zulu-repo_1.0.0-3_all.deb
23+
msg_info "Installing Azul Zulu17"
24+
curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
25+
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list
2626
$STD apt-get update
27-
$STD apt-get -y install zulu21-jdk
28-
msg_ok "Installed Azul Zulu21"
27+
$STD apt-get -y install zulu17-jdk
28+
msg_ok "Installed Azul Zulu17"
2929

3030
msg_info "Installing openHAB"
3131
curl -fsSL "https://openhab.jfrog.io/artifactory/api/gpg/key/public" | gpg --dearmor >openhab.gpg

0 commit comments

Comments
 (0)