diff --git a/debian/resources/postgresql.sh b/debian/resources/postgresql.sh index c4ff0c7..882a0a2 100755 --- a/debian/resources/postgresql.sh +++ b/debian/resources/postgresql.sh @@ -40,15 +40,10 @@ fi #add PostgreSQL and 2ndquadrant repos if [ ."$database_repo" = ."2ndquadrant" ]; then - echo "deb http://apt.postgresql.org/pub/repos/apt/ $os_codename-pgdg main" > /etc/apt/sources.list.d/postgresql.list - echo "deb [trusted=yes] http://packages.2ndquadrant.com/bdr/apt/ $os_codename-2ndquadrant main" > /etc/apt/sources.list.d/2ndquadrant.list - /usr/bin/wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - - #/usr/bin/wget --quiet -O - http://packages.2ndquadrant.com/bdr/apt/AA7A6805.asc | apt-key add - - apt-get update && apt-get upgrade -y + curl https://dl.2ndquadrant.com/default/release/get/deb | bash apt-get install -y sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4 fi - #systemd systemctl daemon-reload systemctl restart postgresql