TLSharp/scripts/install_mono_from_microsoft_deb_packages.sh
Andres G. Aragoneses 652c7d6cbb GitLabCI: remove old mono version pipeline
Because it is red (because nuget doesn't accept old TLS connections,
and only newer versions of Mono support newer TLS versions)
2020-09-18 14:54:50 +08:00

18 lines
604 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
source /etc/os-release
# required by apt-key
apt install -y gnupg2
# required by apt-update when pulling from mono-project.com
apt install -y ca-certificates
# taken from http://www.mono-project.com/download/stable/#download-lin
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-$UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/mono-official-stable.list
apt update
DEBIAN_FRONTEND=noninteractive apt install -y mono-devel
mono --version