Created
November 7, 2022 01:59
-
-
Save jessicacardoso/02e001783ea7070efac01e9ef7ebbb59 to your computer and use it in GitHub Desktop.
Jornada DevOps com AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Atualizando o servidor..." | |
apt-get update | |
apt-get upgrade -y | |
echo "Instalando dependências..." | |
apt-get install apache2 -y | |
apt-get install unzip -y | |
echo "Baixando a aplicação..." | |
cd /tmp/ | |
wget https://github.com/denilsonbonatti/linux-site-dio/archive/refs/heads/main.zip | |
echo "Copiando arquivos para o diretório apache" | |
unzip main.zip | |
rm main.zip | |
cd linux-site-dio-main | |
cp -R * /var/www/html/ | |
echo "Finalizado..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment