From 66159fd21082a9de02f7c6e1f837b8c0355bd90f Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 31 Jul 2023 12:47:35 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 3872522..2f6463d 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -698,13 +698,14 @@ if [ ! -f "/usr/local/bin/reboot_pve.txt" ]; then sed -i 's#http://debian-archive.trafficmanager.net/debian-security#http://security.debian.org/debian-security#g' /etc/apt/sources.list sed -i 's#http://debian-archive.trafficmanager.net/debian bullseye-updates#http://deb.debian.org/debian bullseye-updates#g' /etc/apt/sources.list sed -i 's#http://debian-archive.trafficmanager.net/debian bullseye-backports#http://deb.debian.org/debian bullseye-backports#g' /etc/apt/sources.list + # if [[ "${inet_dhcp}" == true ]]; then + # # 特殊处理原有配置是dhcp的情况 + # prebuild_ifupdown2 + # fi fi if [[ $output == *"Hetzner_vServer"* ]]; then # 特殊处理Hetzner prebuild_ifupdown2 - elif [[ "${inet_dhcp}" == true ]]; then - # 特殊处理原有配置是dhcp的情况 - prebuild_ifupdown2 fi # # 特殊处理OVH # if dig -x $main_ipv4 | grep -q "vps.ovh"; then