Skip to content

Commit 767bdcf

Browse files
PBM-1241. Fix PBM pkg build for RHEL7,8 (#918)
1 parent b33da3d commit 767bdcf

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

packaging/scripts/mongodb-backup_builder.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,6 @@ parse_arguments() {
6161
done
6262
}
6363

64-
add_percona_yum_repo() {
65-
if [ ! -f /etc/yum.repos.d/percona-dev.repo ]; then
66-
if [ "x$RHEL" = "x8" ]; then
67-
cat >/etc/yum.repos.d/percona-dev.repo <<EOL
68-
[percona-rhel8-AppStream]
69-
name=Percona internal YUM repository for RHEL8 AppStream
70-
baseurl=http://jenkins.percona.com/yum-repo/rhel8/AppStream
71-
gpgkey=https://jenkins.percona.com/yum-repo/rhel8/AppStream/RPM-GPG-KEY-redhat-beta
72-
gpgcheck=0
73-
enabled=1
74-
[percona-rhel8-BaseOS]
75-
name=Percona internal YUM repository for RHEL8 BaseOS
76-
baseurl=https://jenkins.percona.com/yum-repo/rhel8/BaseOS/
77-
gpgkey=https://jenkins.percona.com/yum-repo/rhel8/BaseOS/RPM-GPG-KEY-redhat-beta
78-
gpgcheck=0
79-
enabled=1
80-
EOL
81-
else
82-
curl -o /etc/yum.repos.d/ https://jenkins.percona.com/yum-repo/percona-dev.repo
83-
fi
84-
fi
85-
return
86-
}
87-
8864
check_workdir() {
8965
if [ "x$WORKDIR" = "x$CURDIR" ]; then
9066
echo >&2 "Current directory cannot be used for building!"
@@ -185,9 +161,6 @@ install_deps() {
185161

186162
if [ "x$OS" = "xrpm" ]; then
187163
RHEL=$(rpm --eval %rhel)
188-
if [ "$RHEL" -lt 9 ]; then
189-
add_percona_yum_repo
190-
fi
191164
yum clean all
192165
yum -y install epel-release git wget
193166
yum -y install rpm-build make rpmlint rpmdevtools golang krb5-devel

0 commit comments

Comments
 (0)