Fixed packages installation to conform with Amazon Linux 2023
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m8s

This commit is contained in:
2025-05-23 13:26:31 -05:00
parent b1942354d9
commit c21b34f5fe

View File

@@ -1,11 +1,12 @@
#!/bin/sh
yum update -y
yum install -y python3-pip git
amazon-linux-extras install nginx1
# Update system and install required packages
dnf update -y
dnf install -y python3-pip git cronie nginx certbot python3-certbot-nginx
pip3 install --upgrade pip
pip3 install certbot certbot-nginx
# Start and enable crond service
systemctl start crond
systemctl enable crond
cd /home/ec2-user