Update install_pve.sh

This commit is contained in:
spiritlhl 2023-05-24 14:42:52 +08:00 committed by GitHub
parent b6db7980b6
commit c43cc008d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,6 @@ if [ "${hostname}" != "pve" ]; then
hostnamectl set-hostname pve
chattr +i /etc/hostname
hostname=$(hostname)
chattr -i /etc/hosts
if ! grep -q "::1 localhost" /etc/hosts; then
echo "::1 localhost" >> /etc/hosts
echo "Added ::1 localhost to /etc/hosts"