Update install_pve.sh

This commit is contained in:
spiritlhl 2023-07-31 12:47:35 +08:00 committed by GitHub
parent 441e636e23
commit 66159fd210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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-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-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 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 fi
if [[ $output == *"Hetzner_vServer"* ]]; then if [[ $output == *"Hetzner_vServer"* ]]; then
# 特殊处理Hetzner # 特殊处理Hetzner
prebuild_ifupdown2 prebuild_ifupdown2
elif [[ "${inet_dhcp}" == true ]]; then
# 特殊处理原有配置是dhcp的情况
prebuild_ifupdown2
fi fi
# # 特殊处理OVH # # 特殊处理OVH
# if dig -x $main_ipv4 | grep -q "vps.ovh"; then # if dig -x $main_ipv4 | grep -q "vps.ovh"; then