From f90712f9aaf9a30fbbeaa3a5b2a8c0a01c75238e Mon Sep 17 00:00:00 2001 From: livejq Date: Sat, 26 Mar 2022 22:23:09 +0800 Subject: [PATCH] use curl instead of wget on centos 7 --- AutoPing.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }