mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
							parent
							
								
									901e26b8ac
								
							
						
					
					
						commit
						a46082ffaa
					
				| 
						 | 
					@ -14,7 +14,7 @@ echo "==============================="
 | 
				
			||||||
echo "Technitium DNS Server Update"
 | 
					echo "Technitium DNS Server Update"
 | 
				
			||||||
echo "==============================="
 | 
					echo "==============================="
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if dotnet --list-runtimes 2>/dev/null | grep -q "Microsoft.NETCore.App 6.0."; then
 | 
					if dotnet --list-runtimes 2>/dev/null | grep -q "Microsoft.NETCore.App 7.0."; then
 | 
				
			||||||
	dotnetFound="yes"
 | 
						dotnetFound="yes"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	dotnetFound="no"
 | 
						dotnetFound="no"
 | 
				
			||||||
| 
						 | 
					@ -22,21 +22,21 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -d $dotnetDir ]; then
 | 
					if [ -d $dotnetDir ]; then
 | 
				
			||||||
	dotnetUpdate="yes"
 | 
						dotnetUpdate="yes"
 | 
				
			||||||
	echo "Updating .NET 6 Runtime..."
 | 
						echo "Updating .NET 7 Runtime..."
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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
 | 
					curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -c 7.0 --runtime dotnet --no-path --install-dir $dotnetDir --verbose >>$installLog 2>&1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -f "/usr/bin/dotnet" ]; then
 | 
					if [ ! -f "/usr/bin/dotnet" ]; then
 | 
				
			||||||
	ln -s $dotnetDir/dotnet /usr/bin >>$installLog 2>&1
 | 
						ln -s $dotnetDir/dotnet /usr/bin >>$installLog 2>&1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if dotnet --list-runtimes 2>/dev/null | grep -q "Microsoft.NETCore.App 6.0."; then
 | 
					if dotnet --list-runtimes 2>/dev/null | grep -q "Microsoft.NETCore.App 7.0."; then
 | 
				
			||||||
	if [ "$dotnetUpdate" = "yes" ]; then
 | 
						if [ "$dotnetUpdate" = "yes" ]; then
 | 
				
			||||||
		echo ".NET 6 Runtime was updated successfully!"
 | 
							echo ".NET 7 Runtime was updated successfully!"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	echo "Failed to update .NET 6 Runtime. Please try again."
 | 
						echo "Failed to update .NET 7 Runtime. Please try again."
 | 
				
			||||||
	exit 1
 | 
						exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue