更新 'os/kvm-repo.sh'

master
newrain001 3 months ago
parent 61dfcac474
commit c0f9bbf098
  1. 3
      os/kvm-repo.sh

@ -3,13 +3,14 @@ yum_repo(){
dirname=$(mktemp -d repo-XXXXX)
mv *.repo $dirname 2>/dev/null
if [ $repo_type -eq 0 ];then
check_resolv yum.cloud.repo && echo "$local_repo yum.cloud.repo " >> /etc/hosts
echo "$repo yum.cloud.repo " >> /etc/hosts
echo "开始下载资源,请等待"
for i in nexus-Centos-Base.repo nexus-epel.repo nexus-mysql.repo nexus-docker-ce.repo nexus-kubernetes.repo
do
curl -s -o $i "https://gitea.beyourself.org.cn/newrain001/download/raw/branch/master/repo/$i"
echo "yum 源 $i 配置完成"
done
elif [ $repo_type -eq 1 ];then
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo

Loading…
Cancel
Save