From 2364b2f96b567eca8fa0739d599a61929631856b Mon Sep 17 00:00:00 2001 From: Travis Holloway Date: Wed, 3 Jul 2024 10:15:51 -0500 Subject: [PATCH] Update cpanel-setup to set base repo to use vault CentOS 7 went EOL on June 30th, and the mirrors were removed within a few hours of it going EOL. As such, we need to update the repo file to point to vault before doing anything with yum in the setup script. Changelog: --- t/cpanel-setup | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/t/cpanel-setup b/t/cpanel-setup index 882ea942..36e8563a 100755 --- a/t/cpanel-setup +++ b/t/cpanel-setup @@ -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 \