fix: Install certbot using snap
All checks were successful
Build Docker / Build Docker (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2023-12-22 18:02:11 +11:00
parent c162ea8d21
commit 46b3fcbc80
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -8,11 +8,11 @@ fi
chmod +x cert.sh
sudo apt-get install -y dnsdist
# Install apt-add-repository
sudo apt-get install -y software-properties-common
# Install certbot
sudo apt-add-repository ppa:certbot/certbot -y
sudo apt install certbot -y
sudo apt install snapd
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --manual --manual-auth-hook ./cert.py --preferred-challenges dns -d hnsdoh.com --deploy-hook ./cert.sh
sudo cp ./resolved.conf /etc/systemd/resolved.conf