mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-09-07 15:04:14 +08:00
update
This commit is contained in:
parent
eea44a5657
commit
cb6b021424
1 changed files with 1 additions and 3 deletions
|
@ -1,14 +1,12 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.08.09
|
||||
# 2023.08.22
|
||||
|
||||
if [ -f "/etc/resolv.conf" ]; then
|
||||
cp /etc/resolv.conf /etc/resolv.conf.bak
|
||||
chattr -i /etc/resolv.conf
|
||||
echo "nameserver 8.8.8.8" | tee -a /etc/resolv.conf >/dev/null
|
||||
echo "nameserver 8.8.4.4" | tee -a /etc/resolv.conf >/dev/null
|
||||
chattr +i /etc/resolv.conf
|
||||
fi
|
||||
|
||||
temp_file_apt_fix="/tmp/apt_fix.txt"
|
||||
|
|
Loading…
Add table
Reference in a new issue