From a1caa7b64f887ae2737aa5d80ec14daae4ef99e4 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:49:35 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 20bd216..bfc2aad 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -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