Actualiser install.sh

This commit is contained in:
wilou 2024-04-29 10:14:42 +00:00
parent 7d8fbf1b0f
commit 9ea40f02b4

View File

@ -25,9 +25,10 @@ hostnamectl set-hostname $machinename
#sed -i '1i 127.0.0.1\t'$machinename /etc/hosts #sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
# Réecriture du fichier hosts avec le profil Unified hosts = (adware + malware) de Steven Black # Réecriture du fichier hosts avec le profil Unified hosts = (adware + malware) de Steven Black
echo "127.0.0.1 $(hostname)" > hosts echo "127.0.0.1 $(hostname)" > /etc/hosts
echo "127.0.1.1 $(hostname)" >> hosts echo "127.0.1.1 $(hostname)" >> /etc/hosts
{ echo ""; wget -qO- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts; } >> hosts echo "" >> /etc/hosts
wget -qO- --no-check-certificate https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts >> /etc/hosts
# noatime pour les partitions ext4 # noatime pour les partitions ext4
#cp /etc/fstab /etc/fstab.bck #cp /etc/fstab /etc/fstab.bck