Update install_pve7.sh

This commit is contained in:
spiritLHLS 2023-02-13 21:30:17 +08:00 committed by GitHub
parent fd5e304622
commit b4ad159331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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