Update ssh.sh

This commit is contained in:
spiritlhl 2023-06-14 09:24:34 +08:00 committed by GitHub
parent b2a38e51c5
commit 4a4097f1e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,10 +4,10 @@
if [ -f "/etc/resolv.conf" ]
then
cp /etc/resolv.conf /etc/resolv.conf.bak
sudo chattr -i /etc/resolv.conf
chattr -i /etc/resolv.conf
echo "nameserver 8.8.8.8" | tee -a /etc/resolv.conf > /dev/null
echo "nameserver 8.8.4.4" | tee -a /etc/resolv.conf > /dev/null
sudo chattr +i /etc/resolv.conf
chattr +i /etc/resolv.conf
fi
temp_file_apt_fix="/tmp/apt_fix.txt"