From dedfed06df9b062b571e3b85fd7dfed6ee2ee318 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 28 May 2023 17:45:53 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 08c1e78..9d8bf73 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -110,7 +110,7 @@ fi rebuild_cloud_init # 检测IPV4 -ip=$(ip -4 addr show | grep global | awk 'NR==1{print $2}' | cut -d '/' -f1) +ip=$(ip -4 addr show | grep global | awk '{print $2}' | cut -d '/' -f1 | head -n 1) # /etc/hosts文件修改 hostname=$(hostname)