From f58586b2f7f93ad966993d430845201d63367ea7 Mon Sep 17 00:00:00 2001 From: livejq Date: Sat, 26 Mar 2022 21:22:29 +0800 Subject: [PATCH] add epel mirrors for centos 7 --- AutoPing.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AutoPing.sh b/AutoPing.sh index 63042d1..16b5c3c 100644 --- a/AutoPing.sh +++ b/AutoPing.sh @@ -22,7 +22,7 @@ selectAction() { echo -e "${GREEN} \ 直接回车一起安装 / ${PLAIN}" echo -e "${GREEN} ========================================================= ${PLAIN}" echo -e "${YELLOW} System requirements: ${PLAIN}${RED}CentOS 7${PLAIN}${YELLOW} or ${PLAIN}${RED}Ubuntu 20.04${PLAIN}${YELLOW}. ${PLAIN}" - echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.0.6${PLAIN}${YELLOW} (23 Mar. 2022) ${PLAIN}" + echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.0.7${PLAIN}${YELLOW} (26 Mar. 2022) ${PLAIN}" echo -e "${YELLOW} Copyright (C) 2021 liveJQ cloud@livejq.fun ${PLAIN}" echo "" read -rp "请输入数字选择:" num @@ -64,7 +64,8 @@ EOF updateCe() { mv /etc/yum.repos.d/* /tmp/ -curl -o /etc/yum.repos.d/centos7.repo http://mirrors.aliyun.com/repo/Centos-7.repo +wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo +wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum -y install epel-release yum clean all && yum repolist }