@@ -15,7 +15,15 @@ PG_TOG=$(echo $PG_VERSION | sed 's|\.||g')
1515
1616if [ ${DISTRIB} != ' rhel' -o ${DISTRIB_VERSION} != ' 7' ]; then
1717 # update of rpm package is broken in rhel-7 (26/12/2022)
18+ if [ ${DISTRIB} = ' centos' -a ${DISTRIB_VERSION} = ' 8' ]; then
19+ sed -i ' s|mirrorlist|#mirrorlist|g' /etc/yum.repos.d/CentOS-* .repo
20+ sed -i ' s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* .repo
21+ fi
1822 yum update -y
23+ if [ ${DISTRIB} = ' centos' -a ${DISTRIB_VERSION} = ' 8' ]; then
24+ sed -i ' s|mirrorlist|#mirrorlist|g' /etc/yum.repos.d/CentOS-* .repo
25+ sed -i ' s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* .repo
26+ fi
1927fi
2028
2129if [ ${PBK_EDITION} == ' ent' ]; then
@@ -80,11 +88,13 @@ if [ $PBK_EDITION == 'std' ] ; then
8088
8189 # install POSTGRESQL
8290 # rpm -ivh https://download.postgresql.org/pub/repos/yum/reporpms/EL-${DISTRIB_VERSION}-x86_64/pgdg-redhat-repo-latest.noarch.rpm
83- if [[ ${PG_VERSION} == ' 11' ]] || [[ ${PG_VERSION} == ' 12' ]]; then
84- rpm -ivh https://repo.postgrespro.ru/pgpro-${PG_VERSION} /keys/postgrespro-std-${PG_VERSION} .${DISTRIB} .yum-${PG_VERSION} -0.3.noarch.rpm
85- else
86- rpm -ivh https://repo.postgrespro.ru/pgpro-${PG_VERSION} /keys/postgrespro-std-${PG_VERSION} .${DISTRIB} .yum-${PG_VERSION} -0.3.noarch.rpm
87- fi
91+ # if [[ ${PG_VERSION} == '11' ]] || [[ ${PG_VERSION} == '12' ]]; then
92+ # rpm -ivh https://repo.postgrespro.ru/pgpro-${PG_VERSION}/keys/postgrespro-std-${PG_VERSION}.${DISTRIB}.yum-${PG_VERSION}-0.3.noarch.rpm
93+ # else
94+ # rpm -ivh https://repo.postgrespro.ru/pgpro-${PG_VERSION}/keys/postgrespro-std-${PG_VERSION}.${DISTRIB}.yum-${PG_VERSION}-0.3.noarch.rpm
95+ # fi
96+ curl -o pgpro-repo-add.sh https://repo.postgrespro.ru/pgpro-${PG_VERSION} /keys/pgpro-repo-add.sh
97+ sh pgpro-repo-add.sh
8898
8999 if [[ ${PG_VERSION} == ' 9.6' ]]; then
90100 yum install -y postgrespro${PG_TOG} -server.x86_64
0 commit comments