Update install_pve.sh

This commit is contained in:
spiritlhl 2023-06-13 09:14:59 +08:00 committed by GitHub
parent e947301326
commit 67b8f52a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,13 +366,8 @@ then
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
chattr +i /etc/resolv.conf
fi
if [[ -n "${CN}" ]]; then
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.service -O /etc/systemd/system/check-dns.service
else
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.service -O /etc/systemd/system/check-dns.service
fi
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check-dns.service -O /etc/systemd/system/check-dns.service
chmod +x /usr/local/bin/check-dns.sh
chmod +x /etc/systemd/system/check-dns.service
systemctl daemon-reload