From 29f649b3d17a9e1ef2ac2eacd89d4f73d57dd0d7 Mon Sep 17 00:00:00 2001 From: Mike Ovsiannikov Date: Sun, 30 Jun 2024 20:28:35 -0700 Subject: [PATCH] Build script: * Fix yum repo modifications for CentOS 7 and 8 to point to vault. --- travis/script.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/travis/script.sh b/travis/script.sh index 096aecb29..5fd75febe 100755 --- a/travis/script.sh +++ b/travis/script.sh @@ -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