@@ -15,7 +15,15 @@ PG_TOG=$(echo $PG_VERSION | sed 's|\.||g')
15
15
16
16
if [ ${DISTRIB} != ' rhel' -o ${DISTRIB_VERSION} != ' 7' ]; then
17
17
# 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
18
22
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
19
27
fi
20
28
21
29
if [ ${PBK_EDITION} == ' ent' ]; then
@@ -80,11 +88,13 @@ if [ $PBK_EDITION == 'std' ] ; then
80
88
81
89
# install POSTGRESQL
82
90
# 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
88
98
89
99
if [[ ${PG_VERSION} == ' 9.6' ]]; then
90
100
yum install -y postgrespro${PG_TOG} -server.x86_64
0 commit comments