top of page
Search

EC2 USER DATA From GIT



#!/bin/bash


yum update -y

yum install -y httpd git


systemctl start httpd

systemctl enable httpd


cd /var/www/html


git clone https://github.com/USERNAME/REPOSITORY.git .


systemctl restart httpd


echo "Website deployed successfully" > /var/log/user-data.log


exit 0

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page