Update openhab-install.sh (#4438)

1) Update zulu repo
2) Use zulu17-jdk (previously zulu21-jdk)
This commit is contained in:
moodyblue 2025-05-13 13:40:49 +01:00 committed by GitHub
parent 592d9d03aa
commit 3981cc90c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,16 +16,16 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
gnupg \
ca-certificates \
apt-transport-https
msg_ok "Installed Dependencies"
msg_info "Installing Azul Zulu21"
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc"
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")
$STD dpkg -i zulu-repo_1.0.0-3_all.deb
msg_info "Installing Azul Zulu17"
curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
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
$STD apt-get update
$STD apt-get -y install zulu21-jdk
msg_ok "Installed Azul Zulu21"
$STD apt-get -y install zulu17-jdk
msg_ok "Installed Azul Zulu17"
msg_info "Installing openHAB"
curl -fsSL "https://openhab.jfrog.io/artifactory/api/gpg/key/public" | gpg --dearmor >openhab.gpg