mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 10:38:22 +08:00
Update install_pve7.sh
This commit is contained in:
parent
bb59e7fa1b
commit
390397e69f
1 changed files with 1 additions and 1 deletions
|
@ -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源
|
||||
|
|
Loading…
Reference in a new issue