From 46b3fcbc80dcc42d3b879ec617b040c69123a0aa Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 22 Dec 2023 18:02:11 +1100 Subject: [PATCH] fix: Install certbot using snap --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 6d09aba..3a6cc9a 100755 --- a/install.sh +++ b/install.sh @@ -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