mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 18:18:28 +08:00
Update install_pve.sh
This commit is contained in:
parent
be2775c391
commit
d570e6333b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue