use certbot from apt not snap (#16081)

This commit is contained in:
sakridge
2021-03-23 15:22:47 -07:00
committed by GitHub
parent 2d24d13046
commit afbd09062d

View File

@ -4,11 +4,7 @@ set -ex
[[ $(uname) = Linux ]] || exit 1 [[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1 [[ $USER = root ]] || exit 1
snap install core apt install -y certbot
snap refresh core
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