Skip to content

Commit

Permalink
Revert "Get Centos packages from Vault (openshift#1343)" (openshift#1354
Browse files Browse the repository at this point in the history
)

This reverts commit fc2ff40.
  • Loading branch information
Osher De Paz authored Feb 21, 2022
1 parent bacf996 commit 728ba5d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions 01_install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ sudo dnf -y upgrade
source /etc/os-release
export DISTRO="${ID}${VERSION_ID%.*}"
if [[ $DISTRO == "centos8" ]]; then
if [ "$NAME" != "CentOS Stream" -a ! -e /etc/yum.repos.d/centos-vault.repo ] ; then
# Centos8 is EOL
mv /etc/yum.repos.d /etc/yum.repos.d_$(date +%s)
mkdir /etc/yum.repos.d
echo -e '[base]\nname=base\nbaseurl=https://vault.centos.org/8.4.2105/BaseOS/x86_64/os/\ngpgcheck=0\nenabled=1\n[apps]\nname=apps\nbaseurl=https://vault.centos.org/8.4.2105/AppStream/x86_64/os/\ngpgcheck=0\nenabled=1\n[extras]\nname=extras\nbaseurl=https://vault.centos.org/8.4.2105/extras/x86_64/os/\ngpgcheck=0\nenabled=1' > /etc/yum.repos.d/centos-vault.repo
fi

echo "CentOS is not supported anymore. Please switch to CentOS Stream / RHEL / Rocky Linux"
sudo dnf -y install epel-release dnf --enablerepo=extras
elif [[ $DISTRO == "rhel8" ]]; then
# Enable EPEL for python3-passlib and python3-bcrypt required by metal3-dev-env
Expand Down

0 comments on commit 728ba5d

Please sign in to comment.