mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update InstallNET.sh
This commit is contained in:
parent
59c5624f2b
commit
1d16b08ab5
1 changed files with 3 additions and 3 deletions
|
@ -325,10 +325,10 @@ function selectMirror(){
|
|||
[ -n "$TEMP" ] || exit 1
|
||||
mirrorStatus=0
|
||||
declare -A MirrorBackup
|
||||
if [[ "IsCN" == "cn" ]]; then
|
||||
MirrorBackup=(["debian0"]="" ["debian1"]="https://mirrors.tencent.com/debian/" ["debian2"]="https://mirrors.aliyun.com/debian/" ["debian3"]="https://mirrors.aliyun.com/debian-archive/debian/" ["ubuntu0"]="" ["ubuntu1"]="http://mirrors.tencent.com/ubuntu/" ["ubuntu2"]="http://mirrors.aliyun.com/ubuntu/" ["centos0"]="" ["centos1"]="https://mirrors.cloud.tencent.com/centos/" ["centos2"]="https://mirrors.aliyun.com/centos-stream/" ["centos3"]="http://mirror.nju.edu.cn/centos-altarch/" ["centos4"]="http://mirrors.aliyun.com/centos-vault/" ["fedora0"]="" ["fedora1"]="https://mirrors.aliyun.com/fedora/" ["fedora2"]="https://mirrors.bfsu.edu.cn/fedora/" ["rockylinux0"]="" ["rockylinux1"]="http://mirrors.163.com/rocky/" ["rockylinux2"]="https://mirrors.aliyun.com/rockylinux/" ["almalinux0"]="" ["almalinux1"]="https://mirrors.aliyun.com/almalinux/" ["almalinux2"]="https://mirror.sjtu.edu.cn/almalinux/")
|
||||
if [[ "$IsCN" == "cn" ]]; then
|
||||
MirrorBackup=(["debian0"]="" ["debian1"]="https://mirrors.tencent.com/debian" ["debian2"]="https://mirrors.aliyun.com/debian" ["debian3"]="https://mirrors.aliyun.com/debian-archive/debian" ["ubuntu0"]="" ["ubuntu1"]="http://mirrors.tencent.com/ubuntu" ["ubuntu2"]="http://mirrors.aliyun.com/ubuntu" ["centos0"]="" ["centos1"]="https://mirrors.cloud.tencent.com/centos" ["centos2"]="https://mirrors.aliyun.com/centos-stream" ["centos3"]="http://mirror.nju.edu.cn/centos-altarch" ["centos4"]="http://mirrors.aliyun.com/centos-vault" ["fedora0"]="" ["fedora1"]="https://mirrors.aliyun.com/fedora" ["fedora2"]="https://mirrors.bfsu.edu.cn/fedora" ["rockylinux0"]="" ["rockylinux1"]="http://mirrors.163.com/rocky" ["rockylinux2"]="https://mirrors.aliyun.com/rockylinux" ["almalinux0"]="" ["almalinux1"]="https://mirrors.aliyun.com/almalinux" ["almalinux2"]="https://mirror.sjtu.edu.cn/almalinux")
|
||||
else
|
||||
MirrorBackup=(["debian0"]="" ["debian1"]="http://deb.debian.org/debian/" ["debian2"]="http://ftp.kddilabs.jp/pub/debian/" ["debian3"]="http://archive.debian.org/debian/" ["ubuntu0"]="" ["ubuntu1"]="http://archive.ubuntu.com/ubuntu/" ["ubuntu2"]="http://ports.ubuntu.com/" ["centos0"]="" ["centos1"]="http://mirror.centos.org/centos/" ["centos2"]="http://mirror.stream.centos.org/" ["centos3"]="http://mirror.math.princeton.edu/pub/centos-altarch/" ["centos4"]="http://vault.centos.org/" ["fedora0"]="" ["fedora1"]="https://download-ib01.fedoraproject.org/pub/fedora/linux/" ["fedora2"]="https://download-cc-rdu01.fedoraproject.org/pub/fedora/linux/" ["rockylinux0"]="" ["rockylinux1"]="http://download.rockylinux.org/pub/rocky/" ["rockylinux2"]="http://ftp.riken.jp/Linux/rocky/" ["almalinux0"]="" ["almalinux1"]="http://repo.almalinux.org/almalinux/" ["almalinux2"]="http://ftp.iij.ad.jp/pub/linux/almalinux/")
|
||||
MirrorBackup=(["debian0"]="" ["debian1"]="http://deb.debian.org/debian" ["debian2"]="http://ftp.kddilabs.jp/pub/debian" ["debian3"]="http://archive.debian.org/debian" ["ubuntu0"]="" ["ubuntu1"]="http://archive.ubuntu.com/ubuntu" ["ubuntu2"]="http://ports.ubuntu.com" ["centos0"]="" ["centos1"]="http://mirror.centos.org/centos" ["centos2"]="http://mirror.stream.centos.org" ["centos3"]="http://mirror.math.princeton.edu/pub/centos-altarch" ["centos4"]="http://vault.centos.org" ["fedora0"]="" ["fedora1"]="https://download-ib01.fedoraproject.org/pub/fedora/linux" ["fedora2"]="https://download-cc-rdu01.fedoraproject.org/pub/fedora/linux" ["rockylinux0"]="" ["rockylinux1"]="http://download.rockylinux.org/pub/rocky" ["rockylinux2"]="http://ftp.riken.jp/Linux/rocky" ["almalinux0"]="" ["almalinux1"]="http://repo.almalinux.org/almalinux" ["almalinux2"]="http://ftp.iij.ad.jp/pub/linux/almalinux")
|
||||
fi
|
||||
echo "$New" |grep -q '^http://\|^https://\|^ftp://' && MirrorBackup[${Relese}0]="$New"
|
||||
for mirror in $(echo "${!MirrorBackup[@]}" |sed 's/\ /\n/g' |sort -n |grep "^$Relese"); do
|
||||
|
|
Loading…
Reference in a new issue