mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-11-04 04:49:29 +00:00 
			
		
		
		
	Update technitiumdns-v5.sh
check for ASP.NET Core Runtime, if not present, install
This commit is contained in:
		
							parent
							
								
									f0706c924d
								
							
						
					
					
						commit
						9aea5320f3
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user