Browse Source

07env-install-centos.sh

master
lizw 3 years ago
parent
commit
718f45390e
  1. 2
      00base/07env-install-centos.sh

2
00base/07env-install-centos.sh

@ -236,7 +236,9 @@ function init:update_yum_repos() {
if [ ! -f "$repo_bak" ]; then if [ ! -f "$repo_bak" ]; then
mv $repo $repo_bak mv $repo $repo_bak
wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate ${YUM_REPOS} -O $repo wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate ${YUM_REPOS} -O $repo
yum clean all
yum makecache yum makecache
yum -y install epel-release
fi fi
" "
check::exit_code "$?" "update-yum-repos" "$host 更新yum源" "exit" check::exit_code "$?" "update-yum-repos" "$host 更新yum源" "exit"

Loading…
Cancel
Save