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
|
#!/bin/sh
|
||||||
|
|
||||||
yum update -y
|
# Update system and install required packages
|
||||||
yum install -y python3-pip git
|
dnf update -y
|
||||||
amazon-linux-extras install nginx1
|
dnf install -y python3-pip git cronie nginx certbot python3-certbot-nginx
|
||||||
|
|
||||||
pip3 install --upgrade pip
|
# Start and enable crond service
|
||||||
pip3 install certbot certbot-nginx
|
systemctl start crond
|
||||||
|
systemctl enable crond
|
||||||
|
|
||||||
cd /home/ec2-user
|
cd /home/ec2-user
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user