From b3f6941276e61828ba45c7c2b1d8e746e9fcdca0 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Jan 2024 06:55:58 +0000 Subject: [PATCH 1/3] Updated linux.sh script --- linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 linux.sh diff --git a/linux.sh b/linux.sh old mode 100644 new mode 100755 index a7b7368..6f80fa4 --- a/linux.sh +++ b/linux.sh @@ -19,4 +19,4 @@ echo "-----------------------------" sleep 2 curl ifconfig.me -This is week 4 - project test +echo -e "This is week 4 - project test" From 4c856d3d90502bae0ff49ab980e26f059d59ea05 Mon Sep 17 00:00:00 2001 From: barath Date: Thu, 25 Jan 2024 07:21:54 +0000 Subject: [PATCH 2/3] linux file updated --- linux.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux.sh b/linux.sh index 6f80fa4..122f018 100755 --- a/linux.sh +++ b/linux.sh @@ -19,4 +19,5 @@ echo "-----------------------------" sleep 2 curl ifconfig.me -echo -e "This is week 4 - project test" +echo -e "\n===========================" && sleep 2 +echo -e "This is week 4 - project test for \"$name\"\n Thank you" From 1e55c4c2493774e3a3eef8e385645462450e57ba Mon Sep 17 00:00:00 2001 From: BarathThangapandian <55328713+BarathThangapandian@users.noreply.github.com> Date: Thu, 25 Jan 2024 04:33:20 -0500 Subject: [PATCH 3/3] Create template tem --- template | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 template diff --git a/template b/template new file mode 100644 index 0000000..3d532b3 --- /dev/null +++ b/template @@ -0,0 +1,38 @@ +#!/bin/bash + +# check and update system +sudo yum check-update +sudo yum -y update # -y bypass inquiry step and automatically execute update + +# install Apache HTTP web server +sudo yum -y install httpd # install the Apache HTTP webserver + +# start the web server +sudo systemctl start httpd # start the web server +sudo systemctl enable httpd # enable the server for start up upon (re)boot +sudo systemctl status httpd # check the server status + + +# change directory ownership so current user can write in webser directory +sudo chown -R $USER:$USER /var/www +# change webserver directory attribute for all users to access webpage content +sudo chmod -R 755 /var/www +cd /var/www/html/ + +# write index.html using echo statements below +echo "" > index.html +echo "" >> index.html +echo " " >> index.html +echo " Level It Up ~!!!" >> index.html +echo " " >> index.html +echo " " >> index.html +echo " " >> index.html +echo "

Welcome to Level Up in Tech

" >> index.html +echo "

This web server is run on EC2 instance!!

" >> index.html +echo "

Date of creation: Feb. 10, 2023

" >> index.html +echo "

Date of correction: Feb. 11, 2023

" >> index.html +curl ifconfig.me >> index.html +echo "

Cheer Up, Gold Team!!

" >> index.html +echo " " >> index.html +echo "" >> index.html +# cat /var/www/html/index.html