Atualizar update_srv1.sh

This commit is contained in:
2025-10-25 15:18:44 +00:00
parent 73a358605a
commit 2344ad6309

View File

@@ -1,17 +1,13 @@
#!/bin/bash
wget https://raw.githubusercontent.com/tmferreira-ti/ASOR/main/Confs/srv1/sysctl.conf -O /etc/sysctl.conf --no-check-certificate --no-cache
#
wget https://raw.githubusercontent.com/tmferreira-ti/ASOR/main/Confs/srv1/interfaces -O /etc/network/interfaces --no-check-certificate --no-cache
wget https://raw.githubusercontent.com/tmferreira-ti/ASOR/main/Confs/srv1/nftables.conf -O /etc/nftables.conf --no-check-certificate --no-cache
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/interfaces -O /etc/network/interfaces --no-check-certificate --no-cache
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/sysctl.conf -O /etc/nftables.conf --no-check-certificate --no-cache
#sed -i s'/enp0s8/enp0s3/g' /usr/local/bin/sync-update
#wget https://raw.githubusercontent.com/tmferreira-ti/SSORI/refs/heads/main/configs/sshd_config -O /etc/ssh/sshd_config --no-check-certificate --no-cache
apt update
apt install ssh -y
for i in {10..1}; do
echo -ne "Aguarde $i\033[0K\r"
sleep 1
done
sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
#apt autoremove --purge isc-dhcp-server -y
apt install isc-dhcp-server -y
@@ -41,4 +37,4 @@ echo "nameserver 172.17.0.2" >> /etc/resolv.conf
chattr +i /etc/resolv.conf
#systemctl restart named
reboot
#reboot