Update install_pve.sh

This commit is contained in:
spiritLHLS 2023-04-04 19:12:24 +08:00 committed by GitHub
parent 10fbd5fa19
commit abf962852a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,6 +225,11 @@ if grep -q "source /etc/network/interfaces.d/*" /etc/network/interfaces; then
fi fi
fi fi
systemctl restart networking systemctl restart networking
if [ ! -s "/etc/resolv.conf" ]
then
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
sudo chattr +i /etc/resolv.conf
fi
# 打印安装后的信息 # 打印安装后的信息
url="https://${ip}:8006/" url="https://${ip}:8006/"
_green "安装完毕请打开HTTPS网页 $url" _green "安装完毕请打开HTTPS网页 $url"