Update install_pve.sh

This commit is contained in:
spiritlhl 2023-05-28 17:45:53 +08:00 committed by GitHub
parent c199d3a23f
commit dedfed06df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)