Update install_pve.sh

This commit is contained in:
spiritLHLS 2023-05-12 11:30:04 +08:00 committed by GitHub
parent 6dadfe3f1f
commit 1191564b6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,8 +275,8 @@ if grep -q "source /etc/network/interfaces.d/*" /etc/network/interfaces; then
netmask $subnet\n\
gateway $gateway\n\
dns-nameservers 8.8.8.8 8.8.4.4" /etc/network/interfaces.d/50-cloud-init
chattr +i /etc/network/interfaces.d/50-cloud-init
fi
chattr +i /etc/network/interfaces.d/50-cloud-init
fi
fi
systemctl restart networking