Actualiser install.sh

This commit is contained in:
wilou 2024-04-20 18:32:34 +00:00
parent 969b927496
commit d1b6c018a0

View File

@ -25,9 +25,9 @@ hostnamectl set-hostname $machinename
sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
# noatime pour les partitions ext4
#cp /etc/fstab /etc/fstab.bck
#awk '!/^#/ && ($3 != "swap") && ($2 != "/media/cdrom0") { if(!match(/noatime/, $4)) $4=$4",noatime" } 1' /etc/fstab > /etc/fstab.tmp
#mv /etc/fstab.tmp /etc/fstab
cp /etc/fstab /etc/fstab.bck
awk '!/^#/ && ($3 != "swap") && ($2 != "/media/cdrom0") { if(!match(/noatime/, $4)) $4=$4",noatime" } 1' /etc/fstab > /etc/fstab.tmp
mv /etc/fstab.tmp /etc/fstab
# Mise à jour de la liste des paquets disponibles et mise à jour des paquets installés
apt update