Remove unwanted distro

This commit is contained in:
Edi Septriyanto
2024-04-19 20:09:41 +07:00
parent 8d65ac80cf
commit 693ca341aa

View File

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