Skip to content

Commit

Permalink
#10 linux-projeto-2
Browse files Browse the repository at this point in the history
  • Loading branch information
rsgamboa committed Feb 27, 2023
1 parent daf9004 commit 26f98bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions linux-projeto-2/iac2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

echo "Atualizando o servidor..."
apt-get update
apt-get upgrade -y
apt-get install apache2 -y
apt-get install unzip -y


echo "Baixando e copiando os arquivos da aplicação..."

cd /tmp
wget https://github.com/rsgamboa/MangaFlix/archive/refs/heads/main.zip
unzip main.zip
mv linux-site-dio-main/* /var/www/html/
rm -rf linux-site-dio-main/

echo "Fim....."

0 comments on commit 26f98bb

Please sign in to comment.