From b5f4961d1d1a49006d8be63dba40493799f7a438 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 28 Mar 2022 17:00:13 -0400 Subject: [PATCH] Update technitiumdns-update.sh --- misc/technitiumdns-update.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/technitiumdns-update.sh b/misc/technitiumdns-update.sh index 3f2b7c75..3cb30e42 100644 --- a/misc/technitiumdns-update.sh +++ b/misc/technitiumdns-update.sh @@ -14,7 +14,7 @@ echo "===============================" echo "Technitium DNS Server Update" echo "===============================" -if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.NETCore.App 5.0."; +if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.NETCore.App 6.0."; then dotnetFound="yes" else @@ -24,24 +24,24 @@ fi if [ -d $dotnetDir ] then dotnetUpdate="yes" - echo "Updating .NET 5 Runtime..." + echo "Updating .NET 6 Runtime..." fi - curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -c 5.0 --runtime dotnet --no-path --install-dir $dotnetDir --verbose >> $installLog 2>&1 + curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -c 6.0 --runtime dotnet --no-path --install-dir $dotnetDir --verbose >> $installLog 2>&1 if [ ! -f "/usr/bin/dotnet" ] then ln -s $dotnetDir/dotnet /usr/bin >> $installLog 2>&1 fi - if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.NETCore.App 5.0."; + if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.NETCore.App 6.0."; then if [ "$dotnetUpdate" = "yes" ] then - echo ".NET 5 Runtime was updated successfully!" + echo ".NET 6 Runtime was updated successfully!" fi else - echo "Failed to update .NET 5 Runtime. Please try again." + echo "Failed to update .NET 6 Runtime. Please try again." exit 1 fi