This is a bash script that performs a system update and deploys a web application using the Apache server.
Make sure you have a Linux system with root access or superuser permissions. Otherwise, you can run the commands by preceding them with sudo
.
-
Clone the repository or create a new
deploy.sh
file on your server. -
Open the terminal and execute the script with the following command:
./deploy.sh
-
Update the operating system:
sudo apt update sudo apt upgrade -y
-
Install the Apache web server:
sudo apt install apache2 -y
-
Install the
unzip
tool:sudo apt install unzip -y
-
Download and copy the application files:
cd /tmp wget https://github.com/denilsonbonatti/linux-site-dio/archive/refs/heads/main.zip unzip main.zip cd linux-site-dio-main cp -R * /var/www/html/
Now, your server should be updated, and the web application will be available in /var/www/html/
.
This project is licensed under the MIT License.