mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-03 17:27:17 +08:00
Update install_pve.sh
This commit is contained in:
parent
c199d3a23f
commit
dedfed06df
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue