diff --git a/AutoPing.sh b/AutoPing.sh index 16b5c3c..d366615 100644 --- a/AutoPing.sh +++ b/AutoPing.sh @@ -64,8 +64,8 @@ EOF updateCe() { mv /etc/yum.repos.d/* /tmp/ -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 +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 http://mirrors.aliyun.com/repo/epel-7.repo yum -y install epel-release yum clean all && yum repolist }