From 67b8f52a61bfe096025e8572a8edb8ad9521ac09 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:14:59 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 8f52906..d1e2875 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -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