Skip to content

Commit

Permalink
Build script:
Browse files Browse the repository at this point in the history
* Fix yum repo modifications for CentOS 7 and 8 to point to vault.
  • Loading branch information
mikeov committed Jul 1, 2024
1 parent 447ce72 commit 29f649b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,20 @@ build_centos()
/etc/yum.repos.d/*.repo
elif [ x"$1" = x'7' ]; then
# Centos 7 EOL, use vault for now.
sed -i 's/enabled=1/enabled=0/' \
$MYSUDO sed -i 's/enabled=1/enabled=0/' \
/etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/mirrorlist/#mirrorlist/' \
$MYSUDO sed -i 's/mirrorlist/#mirrorlist/' \
/etc/yum.repos.d/*.repo
sed -i 's/#\(baseurl.*\)mirror.centos.org\/centos\/\$releasever\//\1vault.centos.org\/7.9.2009\//' \
$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.
sed -i 's/enabled=1/enabled=0/' \
/etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/mirrorlist/#mirrorlist/' \
$MYSUDO sed -i 's/mirrorlist/#mirrorlist/' \
/etc/yum.repos.d/*.repo
sed -i 's/#\(baseurl.*\)mirror.centos.org\/centos\/\$releasever\//\1vault.centos.org\/8-stream\//' \
$MYSUDO sed -i 's/#\(baseurl.*\)mirror.centos.org\/\$contentdir\//\1vault.centos.org\//' \
/etc/yum.repos.d/*.repo
$MYSUDO yum update -y
else
$MYSUDO yum update -y
fi
Expand Down

0 comments on commit 29f649b

Please sign in to comment.