Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix certbot on 8s #602

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix certbot on 8s
o0101 committed Dec 10, 2023
commit e427e46645282a330db029f91a8aac35cb101fec
7 changes: 5 additions & 2 deletions deploy-scripts/tls
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ initialize_package_manager
if ! command -v certbot >/dev/null; then
if [ -f /etc/os-release ]; then
. /etc/os-release
if [[ $ID == "centos" || $ID == "rhel" || $ID == "fedora" || $ID_LIKE == *"centos"* || $ID_LIKE == *"rhel"* || $ID_LIKE == *"fedora"* ]]; then
if [[ $ID == "centos" || $ID == "rhel" || $ID == "fedora" || $ID_LIKE == *"centos"* || $ID_LIKE == *"rhel"* || $ID_LIKE == *"fedora"* || "$ID" == "almalinux" ]]; then
# Install Certbot for CentOS/RHEL/Fedora based distributions (including Amazon Linux)
$sudo yum install -y python3 augeas-libs
$sudo python3 -m venv /opt/certbot/
@@ -43,7 +43,10 @@ if ! command -v certbot >/dev/null; then
$sudo ln -sf /opt/certbot/bin/certbot /usr/bin/certbot
if [ "$ID" = "almalinux" ] && [[ "$VERSION_ID" == 8* ]]; then
echo "Detected AlmaLinux version starting with 8. Installing certbot and python3-certbot-apache."
$sudo dnf install certbot python3-certbot-apache
$sudo dnf -y install certbot python3-certbot-apache
elif [ "$ID" = "centos" ] && [[ "$VERSION_ID" == 8* ]]; then
echo "Detected CentOS version starting with 8. Installing certbot and python3-certbot-apache."
$sudo dnf -y install certbot python3-certbot-apache
fi
else
# Install Certbot for other distributions
Loading
Oops, something went wrong.