use curl instead of wget on centos 7

master
livejq 3 years ago
parent f58586b2f7
commit f90712f9aa
  1. 4
      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
}

Loading…
Cancel
Save