mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 09:43:17 +08:00
Update install_pve.sh
This commit is contained in:
parent
3405e51195
commit
8206b910aa
1 changed files with 8 additions and 10 deletions
|
@ -234,17 +234,15 @@ then
|
||||||
chattr +i /etc/resolv.conf
|
chattr +i /etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
if [ ! -f /usr/local/bin/check-dns.sh ]; then
|
if [[ -n "${CN}" ]]; then
|
||||||
if [[ -n "${CN}" ]]; then
|
wget https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.sh -O /usr/local/bin/check-dns.sh
|
||||||
wget https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.sh -O /usr/local/bin/check-dns.sh
|
wget https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.service -O /etc/systemd/system/check-dns.service
|
||||||
wget https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.service -O /etc/systemd/system/check-dns.service
|
else
|
||||||
else
|
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.sh -O /usr/local/bin/check-dns.sh
|
||||||
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.sh -O /usr/local/bin/check-dns.sh
|
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.service -O /etc/systemd/system/check-dns.service
|
||||||
wget https://raw.githubusercontent.com/spiritLHLS/pve/main/check-dns.service -O /etc/systemd/system/check-dns.service
|
|
||||||
fi
|
|
||||||
chmod +x /usr/local/bin/check-dns.sh
|
|
||||||
chmod +x /etc/systemd/system/check-dns.service
|
|
||||||
fi
|
fi
|
||||||
|
chmod +x /usr/local/bin/check-dns.sh
|
||||||
|
chmod +x /etc/systemd/system/check-dns.service
|
||||||
fi
|
fi
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable check-dns.service
|
systemctl enable check-dns.service
|
||||||
|
|
Loading…
Reference in a new issue