Skip to content

Commit

Permalink
Fix mirrorlist for CentOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Jul 4, 2024
1 parent 713bdc8 commit 99d1ba4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/o2-full-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ jobs:
- name: Install prerequisites
run: |
set -ex
if [[ "$DISTRO" == "el7" ]]; then
sed -i.bak -e 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i.bak -r -e 's|# ?baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
find /etc/yum.repos.d -name "*.bak" -delete
yum clean all
yum update -y
fi
yum clean all
yum update -y
yum install -y rpm-build scl-utils-build createrepo unzip git python3 python3-pip python3-setuptools
Expand Down

0 comments on commit 99d1ba4

Please sign in to comment.