From 293f050f113ebc08f100e213922340933b326fbb Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Nov 2026 10:30:00 +0100 Subject: [PATCH] Technitium DNS: read the version from its GitHub releases The version came from scraping technitium.com, which failed for some hosts ("Command substitution exited with status 1", 6 runs on 4 hosts in three days) and has no rate-limit fallback. The GitHub release carries the same version and goes through the engine's release lookup. --- ct/technitiumdns.sh | 2 +- install/technitiumdns-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index 87d9c5b28..67b26575d 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -47,7 +47,7 @@ function update_script() { $STD apt install -y aspnetcore-runtime-10.0 fi - RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') + RELEASE=$(get_latest_github_release "TechnitiumSoftware/DnsServer") if [[ ! -f ~/.technitium || ${RELEASE} != "$(cat ~/.technitium 2>/dev/null)" ]]; then fetch_and_deploy_from_url "https://download.technitium.com/dns/DnsServerPortable.tar.gz" /opt/technitium/dns echo "${RELEASE}" >~/.technitium diff --git a/install/technitiumdns-install.sh b/install/technitiumdns-install.sh index f38de6cae..d5e2c0cdb 100644 --- a/install/technitiumdns-install.sh +++ b/install/technitiumdns-install.sh @@ -23,7 +23,7 @@ setup_deb822_repo \ $STD apt install -y aspnetcore-runtime-10.0 msg_ok "Installed Dependencies" -RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') +RELEASE=$(get_latest_github_release "TechnitiumSoftware/DnsServer") fetch_and_deploy_from_url "https://download.technitium.com/dns/DnsServerPortable.tar.gz" /opt/technitium/dns echo "${RELEASE}" >~/.technitium