Skip to content

Commit

Permalink
Merge pull request #463 from cPholloway/fix_ci
Browse files Browse the repository at this point in the history
Update cpanel-setup to set base repo to use vault
  • Loading branch information
toddr authored Jul 3, 2024
2 parents 319d626 + 2364b2f commit 29b7258
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions t/cpanel-setup
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,50 @@ ULC=/usr/local/cpanel
VERSION=11.110.0.17
REPO=$(pwd)

rm -f /etc/yum.repos.d/CentOS-Base.repo
cat <<'EOF' > /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/7.9.2009/os/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://vault.centos.org/7.9.2009/centosplus/$basearch
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
EOF

yum clean all

yum install -y \
Expand Down

0 comments on commit 29b7258

Please sign in to comment.