mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
install.sh: updated to install .net 8 runtime.
This commit is contained in:
@@ -21,7 +21,7 @@ echo "==============================="
|
|||||||
echo "Technitium DNS Server Installer"
|
echo "Technitium DNS Server Installer"
|
||||||
echo "==============================="
|
echo "==============================="
|
||||||
|
|
||||||
if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.AspNetCore.App 7.0.";
|
if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.AspNetCore.App 8.0.";
|
||||||
then
|
then
|
||||||
dotnetFound="yes"
|
dotnetFound="yes"
|
||||||
else
|
else
|
||||||
@@ -44,14 +44,14 @@ else
|
|||||||
echo "Installing ASP.NET Core Runtime..."
|
echo "Installing ASP.NET Core Runtime..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -c 7.0 --runtime aspnetcore --no-path --install-dir $dotnetDir --verbose >> $installLog 2>&1
|
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -c 8.0 --runtime aspnetcore --no-path --install-dir $dotnetDir --verbose >> $installLog 2>&1
|
||||||
|
|
||||||
if [ ! -f "/usr/bin/dotnet" ]
|
if [ ! -f "/usr/bin/dotnet" ]
|
||||||
then
|
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.AspNetCore.App 7.0.";
|
if dotnet --list-runtimes 2> /dev/null | grep -q "Microsoft.AspNetCore.App 8.0.";
|
||||||
then
|
then
|
||||||
if [ "$dotnetUpdate" = "yes" ]
|
if [ "$dotnetUpdate" = "yes" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user