diff --git a/install_pve7.sh b/install_pve7.sh index d0719bf..1126776 100644 --- a/install_pve7.sh +++ b/install_pve7.sh @@ -16,6 +16,7 @@ fi curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/check_sudo.sh -o check_sudo.sh && chmod +x check_sudo.sh && bash check_sudo.sh > /dev/null 2>&1 # sysctl -w net.ipv6.conf.all.disable_ipv6=1 # sysctl -w net.ipv6.conf.default.disable_ipv6=1 +sed -i '/127.0.0.1 localhost/d' /etc/hosts hostname=$(cat /etc/hostname) ip_address=$(hostname --ip-address) if grep -q "^$ip_address" /etc/hosts; then