@@ -15,6 +15,10 @@ if [ ${PBK_EDITION} == 'ent' ]; then
1515exit 0
1616fi
1717
18+ if [${PBK_EDITION} == ' std' ]&& [${PG_VERSION} == ' 9.6' ]; then
19+ exit 0
20+ fi
21+
1822# upgrade and utils
1923# export parameters
2024export DEBIAN_FRONTEND=noninteractive
@@ -49,29 +53,15 @@ http {
4953EOF
5054nginx -s reload|| (pkill -9 nginx|| nginx -c /etc/nginx/nginx.conf& )
5155
52- # add postgresql repo
53- if [${PG_VERSION} == ' 9.6' ]; then
54- sh -c' echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
55- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc| apt-key add -
56- apt-get update -y
57- fi
58-
5956# install POSTGRESPRO
6057if [${PBK_EDITION} == ' std' ]; then
6158 sh -c' echo "deb https://repo.postgrespro.ru/pgpro-${PG_VERSION}/${DISTRIB}/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/pgpro.list'
6259 wget --quiet -O - https://repo.postgrespro.ru/pgpro-${PG_VERSION} /keys/GPG-KEY-POSTGRESPRO| apt-key add -
6360 apt-get update -y
6461
65- if [[${PG_VERSION} == ' 9.6' ]]; then
66- apt-get install -y postgrespro-${PG_VERSION}
67- BINDIR=" /usr/lib/postgresql/${PG_VERSION} /bin"
68- else
69- apt-get install -y postgrespro-std-${PG_VERSION}
70- BINDIR=" /opt/pgpro/std-${PG_VERSION} /bin"
71- export LD_LIBRARY_PATH=/opt/pgpro/std-${PG_VERSION} /lib/
72- fi
73-
74- apt-get install libpq5 -y
62+ apt-get install -y postgrespro-std-${PG_VERSION}
63+ BINDIR=" /opt/pgpro/std-${PG_VERSION} /bin"
64+ export LD_LIBRARY_PATH=/opt/pgpro/std-${PG_VERSION} /lib/
7565fi
7666
7767# install pg_probackup from current public repo