From bf70648c15f4a6b71800919099b0941ff2e6bbf6 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Thu, 17 Jun 2021 16:07:11 +0700 Subject: [PATCH] fix certbot repo for Focal --- scripts/install_certbotle.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/install_certbotle.sh b/scripts/install_certbotle.sh index 4d6c1b1..5c1f37b 100755 --- a/scripts/install_certbotle.sh +++ b/scripts/install_certbotle.sh @@ -53,9 +53,16 @@ function init_certbotle_install() { esac ;; ubuntu) - run add-apt-repository -y ppa:certbot/certbot - run apt update -qq -y - run apt install -qq -y certbot + case "${RELEASE_NAME}" in + focal) + run apt install -qq -y certbot + ;; + *) + run add-apt-repository -y ppa:certbot/certbot + run apt update -qq -y + run apt install -qq -y certbot + ;; + esac ;; esac