1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-25 10:42:53 +02:00

Update technitiumdns-v5.sh

check for ASP.NET Core Runtime, if not present, install
This commit is contained in:
tteckster 2023-02-24 16:54:13 -05:00 committed by GitHub
parent f0706c924d
commit 9aea5320f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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