Browse Source

Update postgresql.sh

FusionPBX 6 years ago
parent
commit
8074f2ece7
1 changed files with 1 additions and 6 deletions
  1. 1 6
      debian/resources/postgresql.sh

+ 1 - 6
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