11#! /usr/bin/env bash
22
3- # Copyright Notice:
4- # © (C) Postgres Professional 2015-2016 http://www.postgrespro.ru/
5- # Distributed under Apache License 2.0
6- # Распространяется по лицензии Apache 2.0
7-
83set -xe
94set -o pipefail
105
@@ -13,6 +8,7 @@ ulimit -n 1024
138apt-get clean -y
149apt-get update -y
1510apt-get install nginx su -y
11+ apt-get install apt-transport-https ca-certificates -y
1612
1713adduser nginx
1814
@@ -40,7 +36,7 @@ export PGDATA=/var/lib/pgsql/${PG_VERSION}/data
4036# install old packages
4137echo " rpm http://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p7 x86_64 vanilla" > /etc/apt/sources.list.d/pg_probackup.list
4238apt-get update
43- apt-get install${PKG_NAME} ${PKG_NAME} -debuginfo -y
39+ apt-get install${PKG_NAME} -y
4440${PKG_NAME} --help
4541${PKG_NAME} --version
4642
@@ -50,7 +46,7 @@ echo "rpm http://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p${DISTRIB
5046echo " rpm [p${DISTRIB_VERSION} ] http://mirror.yandex.ru/altlinux p${DISTRIB_VERSION} /branch/x86_64 debuginfo" > /etc/apt/sources.list.d/debug.list
5147
5248apt-get update -y
53- apt-get install${PKG_NAME} ${PKG_NAME} -debuginfo -y
49+ apt-get install${PKG_NAME} -y
5450${PKG_NAME} --help
5551${PKG_NAME} --version
5652