diff --git a/install/deconz-install.sh b/install/deconz-install.sh index 328a9679..614129e7 100644 --- a/install/deconz-install.sh +++ b/install/deconz-install.sh @@ -26,8 +26,9 @@ echo "deb [arch=amd64] http://phoscon.de/apt/deconz $VERSION main" >/etc/apt/sou msg_ok "Setup Phoscon Repository" msg_info "Installing deConz" -wget -qL http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb -$STD dpkg -i libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb +libssl=$(curl -fsSL "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/" | grep -o 'libssl1\.1_1\.1\.1f-1ubuntu2\.2[^"]*amd64\.deb' | head -n1) +wget -qL http://security.ubuntu.com/ubuntu/pool/main/o/openssl/$libssl +$STD dpkg -i $libssl $STD apt-get update $STD apt-get install -y deconz msg_ok "Installed deConz" @@ -56,7 +57,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb +rm -rf $libssl $STD apt-get autoremove $STD apt-get autoclean msg_ok "Cleaned"