Skip to content

Commit

Permalink
rpm: set mirror's baseurl explicitly
Browse files Browse the repository at this point in the history
As CentOS 7 reaches EOL, so it is expected that
mirrorlist will be broken gradually, so set baseurl explicitly to
improve network connectivity.

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Jul 7, 2024
1 parent ef6df2b commit 9512351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fluent-package/test-install-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ exit 0

function setup_dnf_user()
{
case $ID in
*centos*)
sed -i -e 's,^mirrorlist=,#mirrorlist,' /etc/yum.repos.d/CentOS-Base.repo
sed -i -e 's,^#baseurl=http://mirror.centos.org/centos/\$releasever/,baseurl=http://ftp.iij.ad.jp/pub/linux/centos/7.9.2009/,' /etc/yum.repos.d/CentOS-Base.repo
cat /etc/yum.repos.d/CentOS-Base.repo
;;
esac
$DNF update -y
case $VERSION_ID in
*2023*|*9\.*)
Expand Down

0 comments on commit 9512351

Please sign in to comment.