Use Snap instead for Certbot

It's much better, and newer, and updates automatically
This commit is contained in:
Daniel Hansson
2023-10-02 12:10:14 +02:00
committed by GitHub
parent 30a9f19e82
commit d3abe106c9

View File

@@ -245,7 +245,8 @@ fi
echo "Installing nginx"
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
sudo apt -y install nginx
sudo apt -y install python3-certbot-nginx
apt -y install snapd
snap install certbot
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] || [ "${OS}" = "Almalinux" ] || [ "${UPSTREAM_ID}" = "Rocky*" ] ; then
# openSUSE 15.4 fails to run the relay service and hangs waiting for it
# Needs more work before it can be enabled