From 390397e69f34ea9c140ed4d56ea1d576a6911e76 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 13 Feb 2023 19:26:28 +0800 Subject: [PATCH] Update install_pve7.sh --- install_pve7.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_pve7.sh b/install_pve7.sh index 5fbf14a..e2f6c44 100644 --- a/install_pve7.sh +++ b/install_pve7.sh @@ -32,7 +32,7 @@ fi # 修改 /etc/hosts ip=$(curl -s ipv4.ip.sb) line_number=$(tac /etc/hosts | grep -n "^127\.0\.0\.1" | head -n 1 | awk -F: '{print $1}') -echo "$ip pve.proxmox.com pve" | tee -a /etc/hosts > /dev/null +# echo "$ip pve.proxmox.com pve" | tee -a /etc/hosts > /dev/null sed -i "${line_number} a $ip pve.proxmox.com pve" /etc/hosts # 新增pve源