From b400af5bffa751a0769ca920247c3f1d3255545a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 10:45:03 -0700 Subject: [PATCH] Update postgres.sh --- debian/resources/postgres.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/resources/postgres.sh b/debian/resources/postgres.sh index 026458d..e31da83 100755 --- a/debian/resources/postgres.sh +++ b/debian/resources/postgres.sh @@ -5,6 +5,8 @@ cd "$(dirname "$0")" #includes . ./config.sh +. ./colors.sh +. ./environment.sh #send a message echo "Install PostgreSQL" @@ -15,6 +17,11 @@ password=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64) #install message echo "Install PostgreSQL and create the database and users\n" +#use the system database repo for arm +if [ .$cpu_architecture = .'arm' ]; then + database_repo="system" +fi + #included in the distribution if [ ."$database_repo" = ."system" ]; then apt-get install -y --force-yes sudo postgresql