From 9ef0152bbe099c52ba3b9d77c97ae196153ea13f Mon Sep 17 00:00:00 2001 From: Jared Date: Tue, 24 Nov 2020 21:35:57 -0800 Subject: [PATCH] Update server install scripts. --- Utilities/CentOS_Server_Install.sh | 2 +- Utilities/Install-RemotelyServer.ps1 | 6 +++--- Utilities/Ubuntu_Server_Install.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Utilities/CentOS_Server_Install.sh b/Utilities/CentOS_Server_Install.sh index f666b62e..bf369b1f 100644 --- a/Utilities/CentOS_Server_Install.sh +++ b/Utilities/CentOS_Server_Install.sh @@ -16,7 +16,7 @@ sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft- yum -y install apt-transport-https yum -y update -yum -y install aspnetcore-runtime-3.1 +yum -y install aspnetcore-runtime-5.0 # Install other prerequisites. diff --git a/Utilities/Install-RemotelyServer.ps1 b/Utilities/Install-RemotelyServer.ps1 index 1aa65584..c9ea78e8 100644 --- a/Utilities/Install-RemotelyServer.ps1 +++ b/Utilities/Install-RemotelyServer.ps1 @@ -155,12 +155,12 @@ else { ## return ##} -if ((Get-Package -Name "*3.1.2 - Windows Server Hosting*" -ErrorAction SilentlyContinue) -eq $null){ +if ((Get-Package -Name "*5.0.0 - Windows Server Hosting*" -ErrorAction SilentlyContinue) -eq $null){ Wrap-Host "Downloading .NET Core Runtime and Hosting Bundle..." $ProgressPreference = "SilentlyContinue" - Invoke-WebRequest -Uri "https://download.visualstudio.microsoft.com/download/pr/dd119832-dc46-4ccf-bc12-69e7bfa61b18/990843c6e0cbd97f9df68c94f6de6bb6/dotnet-hosting-3.1.2-win.exe" -OutFile "$env:TEMP\dotnet-hosting-3.1.2-win.exe" + Invoke-WebRequest -Uri "https://download.visualstudio.microsoft.com/download/pr/08d642f7-8ade-4de3-9eae-b77fd05e5f01/503da91e7ea62d8be06488b014643c12/dotnet-hosting-5.0.0-win.exe" -OutFile "$env:TEMP\dotnet-hosting-5.0.0-win.exe" $ProgressPreference = "Continue" - Start-Process -FilePath "$env:TEMP\dotnet-hosting-3.1.2-win.exe" -ArgumentList "/install /quiet /norestart" -Wait + Start-Process -FilePath "$env:TEMP\dotnet-hosting-5.0.0-win.exe" -ArgumentList "/install /quiet /norestart" -Wait Wrap-Host Wrap-Host ".NET Runtime installation completed." } diff --git a/Utilities/Ubuntu_Server_Install.sh b/Utilities/Ubuntu_Server_Install.sh index a6e03385..2263f5d0 100644 --- a/Utilities/Ubuntu_Server_Install.sh +++ b/Utilities/Ubuntu_Server_Install.sh @@ -34,7 +34,7 @@ dpkg -i packages-microsoft-prod.deb add-apt-repository universe apt-get update apt-get -y install apt-transport-https -apt-get -y install aspnetcore-runtime-3.1 +apt-get -y install aspnetcore-runtime-5.0 rm packages-microsoft-prod.deb