Skip to content

Commit

Permalink
Fix adding dotnet repo in mono_install script (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadmeste authored and deekoder committed Aug 29, 2017
1 parent 1d6b6ef commit d7aebb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mono_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
# limitations under the License.
#

UBUNTU_CODENAME="xenial"

# Download and install Mono and .NETCore for Ubuntu 16.04
main() {
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main"'
echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ $UBUNTU_CODENAME main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
sudo apt-get install -yq dotnet-dev-1.0.4
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list
echo "deb http://download.mono-project.com/repo/ubuntu $UBUNTU_CODENAME main" | sudo tee -a /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get install -yq mono-complete
sudo apt-get install -yq ca-certificates-mono
Expand Down

0 comments on commit d7aebb1

Please sign in to comment.