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 && \