更新 'os/get-repo.sh'

master
newrain001 8 months ago
parent 326e4bdae8
commit eb90e53945
  1. 9
      os/get-repo.sh

@ -11,6 +11,7 @@ bar="
3. 配置pip源 \n
4. 【未启用】配置npm源 \n
5. 【未启用】配置maven源 \n
6. 配置阿里云源 \n
q. 退出 \n
================================="
echo -e $bar
@ -52,6 +53,14 @@ case $num in
5)
echo "暂不支持"
;;
6)
cd /etc/yum.repos.d/ && \
dirname=$(mktemp -d repo-XXXXX)
mv *.repo $dirname 2>/dev/null
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
echo "阿里云源配置完成"
;;
q)
exit 0
;;

Loading…
Cancel
Save