From 87c6b3d73c186cf5891fb1e7fb207867c3156bf4 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:51:58 +0200 Subject: [PATCH] fix(technitiumdns): always install .NET 10 if not already present Previously the update script only upgraded .NET when aspnetcore-runtime-8.0 or 9.0 was detected via is_package_installed. Containers where detection failed would silently skip the upgrade block, leaving Technitium v15 (requires .NET 10) starting against .NET 8/9 and immediately failing. Changed condition to: install .NET 10 unless it is already installed. Old 8.0/9.0 packages are removed with || true to avoid errors on clean installs. Fixes #14045 --- ct/technitiumdns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index 531fb8b03..6375c8462 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -32,8 +32,8 @@ function update_script() { systemctl daemon-reload systemctl enable -q --now technitium fi - if is_package_installed "aspnetcore-runtime-8.0" || is_package_installed "aspnetcore-runtime-9.0"; then - $STD apt remove -y aspnetcore-runtime-* + if ! is_package_installed "aspnetcore-runtime-10.0"; then + $STD apt remove -y aspnetcore-runtime-8.0 aspnetcore-runtime-9.0 2>/dev/null || true [ -f /etc/apt/sources.list.d/microsoft-prod.list ] && rm -f /etc/apt/sources.list.d/microsoft-prod.list [ -f /usr/share/keyrings/microsoft-prod.gpg ] && rm -f /usr/share/keyrings/microsoft-prod.gpg setup_deb822_repo \