From d570e6333b6a9f2224305f5cdb9e7f9c51a65be9 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 2 Jul 2023 19:44:16 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 42b01a7..c215e19 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -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