From 776f04e9eabc733c3472fa78a5c5081b0c14a47c Mon Sep 17 00:00:00 2001 From: Jarmo Puttonen Date: Fri, 12 Nov 2021 21:48:36 +0200 Subject: [PATCH] Update install.sh to use Snapd version of Certbot --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 04da100..4ae06d1 100755 --- a/install.sh +++ b/install.sh @@ -65,7 +65,13 @@ if [ 0 -eq $? ]; then fi fi; -apt update -y && apt install -y python3 python3-pip certbot && pip3 install dnslib +# Use snap version of Certbot because APT-version is too old. +snap install --classic certbot +snap refresh certbot +ln -s /snap/bin/certbot /usr/bin/certbot + +apt update -y && apt install -y python3 python3-pip && pip3 install dnslib + mkdir -p /usr/local/collaborator/ cp "$SRC_PATH/dnshook.sh" /usr/local/collaborator/ cp "$SRC_PATH/cleanup.sh" /usr/local/collaborator/