net/gce.sh: Upgrade to Ubuntu 20.04
This commit is contained in:
parent
a0507505f4
commit
3322b83183
|
@ -174,10 +174,10 @@ cloud_CreateInstances() {
|
||||||
# the stock Ubuntu 18.04 image and programmatically install CUDA after the
|
# the stock Ubuntu 18.04 image and programmatically install CUDA after the
|
||||||
# instance boots
|
# instance boots
|
||||||
#
|
#
|
||||||
imageName="ubuntu-1804-bionic-v20181029-with-cuda-10-and-cuda-9-2 --image-project principal-lane-200702"
|
imageName="ubuntu-2004-focal-v20201211-with-cuda-10-2 --image-project principal-lane-200702"
|
||||||
else
|
else
|
||||||
# Upstream Ubuntu 18.04 LTS image
|
# Upstream Ubuntu 20.04 LTS image
|
||||||
imageName="ubuntu-1804-bionic-v20190813a --image-project ubuntu-os-cloud"
|
imageName="ubuntu-2004-focal-v20201201 --image-project ubuntu-os-cloud"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -a nodes
|
declare -a nodes
|
||||||
|
|
|
@ -4,9 +4,11 @@ set -ex
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
[[ $USER = root ]] || exit 1
|
[[ $USER = root ]] || exit 1
|
||||||
|
|
||||||
apt-get update
|
snap install core
|
||||||
add-apt-repository --yes ppa:certbot/certbot
|
snap refresh core
|
||||||
apt-get --assume-yes install certbot
|
|
||||||
|
snap install --classic certbot
|
||||||
|
ln -sf /snap/bin/certbot /usr/bin/certbot
|
||||||
|
|
||||||
cat > /certbot-restore.sh <<'EOF'
|
cat > /certbot-restore.sh <<'EOF'
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
Loading…
Reference in New Issue