From 9aea5320f3cf1b46d24bf13125bfbca3c6aa4250 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 24 Feb 2023 16:54:13 -0500 Subject: [PATCH] Update technitiumdns-v5.sh check for ASP.NET Core Runtime, if not present, install --- ct/technitiumdns-v5.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ct/technitiumdns-v5.sh b/ct/technitiumdns-v5.sh index 099d6b65..f3aa425a 100644 --- a/ct/technitiumdns-v5.sh +++ b/ct/technitiumdns-v5.sh @@ -335,6 +335,14 @@ echo "===============================" echo "Technitium DNS Server Update" echo "===============================" +if ! dpkg -s aspnetcore-runtime-7.0 > /dev/null 2>&1; then + wget -q https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb + dpkg -i packages-microsoft-prod.deb + apt-get update + apt-get install -y aspnetcore-runtime-7.0 + rm packages-microsoft-prod.deb +fi + if dotnet --list-runtimes 2>/dev/null | grep -q "Microsoft.NETCore.App 7.0."; then dotnetFound="yes" else