mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-05 04:08:19 +00:00
Remove unwanted distro
This commit is contained in:
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user