mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update install_pve.sh
This commit is contained in:
parent
0ac04fe385
commit
a1caa7b64f
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ if [ -f "/etc/network/interfaces" ]; then
|
|||
chattr +i /etc/network/interfaces
|
||||
fi
|
||||
# 检查/etc/network/interfaces文件中是否有iface xxxx inet dhcp行
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]]; then
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Microsoft Corporation"* ]]; then
|
||||
if [ -f "/etc/network/interfaces" ]; then
|
||||
if grep -qF "inet dhcp" /etc/network/interfaces; then
|
||||
inet_dhcp=true
|
||||
|
|
Loading…
Reference in a new issue