Update install_pve.sh

This commit is contained in:
spiritlhl 2023-07-02 19:44:16 +08:00 committed by GitHub
parent be2775c391
commit d570e6333b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,6 +401,9 @@ fi
########## 正式开始安装
## 更改网络优先级为IPV4优先
sed -i 's/.*precedence ::ffff:0:0\/96.*/precedence ::ffff:0:0\/96 100/g' /etc/gai.conf && systemctl restart networking
# cloud-init文件修改
rebuild_cloud_init
@ -439,9 +442,6 @@ if [ "${hostname}" != "pve" ]; then
chattr +i /etc/hosts
fi
## 更改网络优先级为IPV4优先
sed -i 's/.*precedence ::ffff:0:0\/96.*/precedence ::ffff:0:0\/96 100/g' /etc/gai.conf && systemctl restart networking
## ChinaIP检测
if [[ -z "${CN}" ]]; then
if [[ $(curl -m 10 -s https://ipapi.co/json | grep 'China') != "" ]]; then