From 8b779489d16a98a13ed5556acc56f25172f27b6b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 11 Jan 2017 12:39:05 -0700 Subject: [PATCH] Update postgres.sh --- debian/resources/postgres.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/resources/postgres.sh b/debian/resources/postgres.sh index 73d4362..9fcd21c 100755 --- a/debian/resources/postgres.sh +++ b/debian/resources/postgres.sh @@ -6,8 +6,16 @@ echo "Install PostgreSQL" #generate a random password password=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64) -#Postgres +#install message echo "Install PostgreSQL and create the database and users\n" + +#included in the distribution +#apt-get install -y --force-yes sudo postgresql + +#postgres official repository +echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' >> /etc/apt/sources.list.d/pgdg.list +wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - +apt-get update && apt-get upgrade -y apt-get install -y --force-yes sudo postgresql #Add PostgreSQL and BDR REPO