mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFcdnym.sh
This commit is contained in:
parent
fb248c2fe4
commit
d474a60915
|
@ -8,7 +8,7 @@ elif [ -x "$(command -v apt-get)" ]; then
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install lzip unzip qrencode -y
|
apt install lzip unzip qrencode -y
|
||||||
elif [ -x "$(command -v yum)" ]; then
|
elif [ -x "$(command -v yum)" ]; then
|
||||||
vsid=$(grep -i version_id /etc/os-release | cut -d \" -f2 | cut -d . -f1)
|
vsid=$(grep -i version_id /etc/os-release 2>/dev/null | cut -d \" -f2 | cut -d . -f1)
|
||||||
if [[ ${vsid} =~ 8 ]]; then
|
if [[ ${vsid} =~ 8 ]]; then
|
||||||
cd /etc/yum.repos.d/ && mkdir backup && mv *repo backup/
|
cd /etc/yum.repos.d/ && mkdir backup && mv *repo backup/
|
||||||
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
|
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
|
||||||
|
|
Loading…
Reference in New Issue