Update postgresql.sh

This commit is contained in:
FusionPBX 2019-02-17 09:29:57 -07:00 committed by GitHub
parent 65b45e7a14
commit 5ef79a77ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ echo "Install PostgreSQL and create the database and users\n"
#included in the distribution
if [ ."$database_repo" = ."system" ]; then
apt-get install -y --force-yes sudo postgresql
apt-get install -y sudo postgresql
fi
#postgres official repository
@ -28,13 +28,13 @@ if [ ."$database_repo" = ."official" ]; then
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update && apt-get upgrade -y
if [ ."$database_version" = ."latest" ]; then
apt-get install -y --force-yes sudo postgresql
apt-get install -y sudo postgresql
fi
if [ ."$database_version" = ."9.6" ]; then
apt-get install -y --force-yes sudo postgresql-$database_version
apt-get install -y sudo postgresql-$database_version
fi
if [ ."$database_version" = ."9.4" ]; then
apt-get install -y --force-yes sudo postgresql-$database_version
apt-get install -y sudo postgresql-$database_version
fi
fi
@ -45,7 +45,7 @@ if [ ."$database_repo" = ."2ndquadrant" ]; then
/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
apt-get install -y --force-yes sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4
apt-get install -y sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4
fi