From b4ad159331f852cb535c874a2b1e33c94c38d1cc Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 13 Feb 2023 21:30:17 +0800 Subject: [PATCH] Update install_pve7.sh --- install_pve7.sh | 1 + 1 file changed, 1 insertion(+) 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