Fixed packages installation to conform with Amazon Linux 2023
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m8s
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m8s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user