Skip to content

Commit

Permalink
Build script: use vault for CentOS 7 yum.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeov committed Jul 1, 2024
1 parent bd550bf commit 185ef12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ build_centos()
/etc/yum.repos.d/*.repo
sed -i 's/#\(baseurl.*\)mirror.centos.org\/centos\/\$releasever\//\1vault.centos.org\/6.10\//' \
/etc/yum.repos.d/*.repo
elif [ x"$1" = x'7' ]; then
# Centos 7 EOL, use vault for now.
$MYSUDO sed -i 's/enabled=1/enabled=0/' \
/etc/yum/pluginconf.d/fastestmirror.conf
$MYSUDO sed -i 's/mirrorlist/#mirrorlist/' \
/etc/yum.repos.d/*.repo
$MYSUDO sed -i 's/#\(baseurl.*\)mirror.centos.org\/centos\/\$releasever\//\1vault.centos.org\/7.9.2009\//' \
/etc/yum.repos.d/*.repo
$MYSUDO yum update -y
elif [ x"$1" = x'8' ]; then
# Centos 8 EOL, use vault for now.
$MYSUDO sed -i 's/mirrorlist/#mirrorlist/' \
Expand Down

0 comments on commit 185ef12

Please sign in to comment.