mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 19:44:38 +08:00
Update install_pve.sh
This commit is contained in:
parent
ae1fd5a371
commit
45c87950fe
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ if [ "${hostname}" != "pve" ]; then
|
||||||
chattr +i /etc/hosts
|
chattr +i /etc/hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## 更改网络优先级为IPV4优先
|
||||||
|
sed -i 's/.*precedence ::ffff:0:0\/96.*/precedence ::ffff:0:0\/96 100/g' /etc/gai.conf && systemctl restart networking
|
||||||
|
|
||||||
## ChinaIP检测
|
## ChinaIP检测
|
||||||
if [[ -z "${CN}" ]]; then
|
if [[ -z "${CN}" ]]; then
|
||||||
if [[ $(curl -m 10 -s https://ipapi.co/json | grep 'China') != "" ]]; then
|
if [[ $(curl -m 10 -s https://ipapi.co/json | grep 'China') != "" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue