add support for OL9, change centos8 to OL8
@@ -189,20 +189,13 @@ install_deps() {
CURPLACE=$(pwd)
if [ "x$OS" = "xrpm" ]; then
- add_percona_yum_repo
RHEL=$(rpm --eval %rhel)
- if [ "x${RHEL}" = "x8" ]; then
- sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
- sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
+ if [ "$RHEL" -lt 9 ]; then
+ add_percona_yum_repo
fi
- yum -y install wget
yum clean all
- if [ "x${RHEL}" = "x8" ]; then
- yum -y install rpm-build make rpmlint rpmdevtools golang git
- else
- yum -y install epel-release git
- yum -y install rpmbuild rpm-build make rpmlint rpmdevtools golang krb5-devel
- fi
+ yum -y install epel-release git wget
+ yum -y install rpm-build make rpmlint rpmdevtools golang krb5-devel
install_golang
else
until apt-get update; do
