mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 19:44:38 +08:00
Update install_pve.sh
This commit is contained in:
parent
bf501e2ed8
commit
6dadfe3f1f
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ check_cdn_file
|
|||
|
||||
# /etc/hosts文件修改
|
||||
if [ -f "/etc/cloud/cloud.cfg" ]; then
|
||||
if grep -q "preserve_hostname: false" "/etc/cloud/cloud.cfg"; then
|
||||
sed -i 's/preserve_hostname: false/preserve_hostname: true/g' "/etc/cloud/cloud.cfg"
|
||||
if grep -q "preserve_hostname" "/etc/cloud/cloud.cfg"; then
|
||||
sed -E -i 's/preserve_hostname:[[:space:]]*false/preserve_hostname: true/g' "/etc/cloud/cloud.cfg"
|
||||
echo "change preserve_hostname to true"
|
||||
else
|
||||
echo "preserve_hostname is true"
|
||||
|
|
Loading…
Reference in a new issue