From c4828e6e92def49ae86568f4d39fc3b6e3fd71f1 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Tue, 10 Mar 2020 20:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85.net?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scripts/install-dotnet.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/scripts/install-dotnet.sh b/backend/scripts/install-dotnet.sh index 932262e3..ae2464c0 100755 --- a/backend/scripts/install-dotnet.sh +++ b/backend/scripts/install-dotnet.sh @@ -4,13 +4,11 @@ touch /tmp/install.lock # lock touch /tmp/install-dotnet.lock -apt-get install -y curl -curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg -mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg -sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list' +wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +dpkg -i packages-microsoft-prod.deb apt-get install -y apt-transport-https -apt-get update -y -apt-get install -y dotnet-sdk-2.1 +apt-get update +apt-get install -y dotnet-sdk-2.1 dotnet-runtime-2.1 aspnetcore-runtime-2.1 # unlock global rm /tmp/install.lock