From 693ca341aacc5b6cbf4019643167adc04b890744 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Fri, 19 Apr 2024 20:09:41 +0700 Subject: [PATCH] Remove unwanted distro --- scripts/install_certbotle.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install_certbotle.sh b/scripts/install_certbotle.sh index 15d0ddc..642137c 100755 --- a/scripts/install_certbotle.sh +++ b/scripts/install_certbotle.sh @@ -19,7 +19,9 @@ if [[ "$(type -t run)" != "function" ]]; then preflight_system_check fi +## # Install Certbot Let's Encrypt. +## function init_certbotle_install() { if [[ "${AUTO_INSTALL}" == true ]]; then if [[ "${INSTALL_CERTBOT}" == true ]]; then @@ -58,11 +60,6 @@ function init_certbotle_install() { ubuntu) install_certbot_pip ;; - centos | rocky*) - run dnf install-q -y epel-release && run dnf update -q -y && \ - run dnf install-q -y certbot - #install_certbot_pip - ;; *) error "Unable to add Certbot, unsupported distribution release: ${DISTRIB_NAME^} ${RELEASE_NAME^}." echo "Sorry your system is not supported yet, installing from source may fix the issue." @@ -124,6 +121,9 @@ EOL fi } +## +# Install Python Venv for Certbot. +## function install_certbot_pip() { run python -m venv /opt/certbot/ && \ run /opt/certbot/bin/pip install --upgrade pip setuptools cffi && \