From 718f45390e651ba7716055e3ce8a32c56ad073a4 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Sun, 30 Oct 2022 20:19:02 +0800 Subject: [PATCH] 07env-install-centos.sh --- 00base/07env-install-centos.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index cd79f67..f63ce17 100644 --- a/00base/07env-install-centos.sh +++ b/00base/07env-install-centos.sh @@ -236,7 +236,9 @@ function init:update_yum_repos() { if [ ! -f "$repo_bak" ]; then mv $repo $repo_bak wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate ${YUM_REPOS} -O $repo + yum clean all yum makecache + yum -y install epel-release fi " check::exit_code "$?" "update-yum-repos" "$host 更新yum源" "exit"