#!/bin/bash echo "Atualizando!!!" wget https://git.tmferreira.tec.br/tiago.ferreira/GRC/raw/branch/main/Server1/interfaces -O /etc/network/interfaces --no-check-certificate --no-cache apt update apt install bind9 -y wget https://git.tmferreira.tec.br/tiago.ferreira/GRC/raw/branch/main/Server1/named.conf.options -O /etc/bind/named.conf.options --no-check-certificate --no-cache wget https://git.tmferreira.tec.br/tiago.ferreira/GRC/raw/branch/main/Server1/named.conf.local -O /etc/bind/named.conf.local --no-check-certificate --no-cache mkdir -p /etc/bind/domains/fatecseg/ wget https://git.tmferreira.tec.br/tiago.ferreira/GRC/raw/branch/main/Server1/db.fatecseg.edu.br -O /etc/bind/domains/fatecseg/db.fatecseg.edu.br --no-check-certificate --no-cache apt install apache2 -y apt install mariadb-server -y apt install php php-mysql libapache2-mod-php php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc -y wget https://github.com/tmferreira-ti/ASOR/raw/refs/heads/main/Confs/srv2/Apache/fatecseg.conf -O /etc/apache2/sites-available/site.conf --no-check-certificate --no-cache mkdir /dados/paginas/fatecseg -p a2ensite site.conf a2dissite 000-default.conf mysql -u root -p -e "CREATE DATABASE wordpress;" mysql -u root -p -e "GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'password';" mysql -u root -p -e "FLUSH PRIVILEGES;" cd /dados/paginas/fatecseg/ rm -f index.html wget wordpress.org/latest.tar.gz tar --strip-components=1 -xzvf latest.tar.gz rm -f latest.tar.gz chown www-data: -R /dados/paginas/fatecseg/ reboot