Update 1.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-02-15 09:08:41 +00:00
parent 64dfd0bd97
commit 42e27f01b4
1 changed files with 5 additions and 0 deletions

5
1.sh
View File

@ -32,6 +32,11 @@ else
red "不支持你当前系统请选择使用Ubuntu,Debian,Centos系统。" && exit red "不支持你当前系统请选择使用Ubuntu,Debian,Centos系统。" && exit
fi fi
v4=$(curl -s4m6 ip.sb -k)
if [ -z $v4 ]; then
echo -e nameserver 2a01:4f8:c2c:123f::1 > /etc/resolv.conf
fi
[[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y' [[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y'
if [[ $release = Centos ]]; then if [[ $release = Centos ]]; then
if [[ ${vsid} =~ 8 ]]; then if [[ ${vsid} =~ 8 ]]; then