From a56d90348b8eba7be07a0531d6ca0829f2b145b5 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 22 Jan 2024 23:16:33 +0100 Subject: [PATCH] v9.1 - DietPi-Software | Domoticz: Enabled for Bookworm systems, since the latest builds are now compiled against libssl3 --- CHANGELOG.txt | 1 + dietpi/dietpi-software | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 07261d7058..db728ccba9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,7 @@ v9.1 New images: Enhancements: +- DietPi-Software | Domoticz: Enabled for Bookworm systems, since the latest builds are now compiled against libssl3. Bug fixes: diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index cf55398731..16d81926e4 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -1507,8 +1507,6 @@ Available commands: aSOFTWARE_DESC[$software_id]='Open source home automation platform' aSOFTWARE_CATX[$software_id]=17 aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/home_automation/#domoticz' - # - Bookworm: No libssl3 support: https://github.com/domoticz/domoticz/issues/5233, https://github.com/MichaIng/DietPi/issues/6404 - aSOFTWARE_AVAIL_G_DISTRO[$software_id,7]=0 #------------------ software_id=27 aSOFTWARE_NAME[$software_id]='TasmoAdmin' @@ -11422,7 +11420,8 @@ _EOF_ # APT deps aDEPS=('libusb-0.1-4' 'libcurl3-gnutls') # https://github.com/MichaIng/DietPi/issues/6404 - Download_Install "https://releases.domoticz.com/releases/release/domoticz_linux_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz" ./domoticz + local fallback_url="https://github.com/domoticz/domoticz/releases/download/2024.1/domoticz_linux_2024.1_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz" + Download_Install "$(curl -sSfL 'https://api.github.com/repos/domoticz/domoticz/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*\/domoticz_linux_[^\"\/]*_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz\"$/{print \$4}")" ./domoticz # Reinstall: Clean old install dir [[ -d '/opt/domoticz' ]] && G_EXEC rm -R /opt/domoticz G_EXEC mv domoticz /opt/