Update for ARM (#93)

* Update to use php7 for arm

* Fix typo

* Use sip247 9.6 repo for arm
This commit is contained in:
DigiDaz
2017-04-20 00:55:50 +01:00
committed by FusionPBX
parent d8450d43e3
commit d980759de9
2 changed files with 19 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ 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"
database_repo="sip247"
fi
#included in the distribution
@@ -45,6 +45,14 @@ if [ ."$database_repo" = ."2ndquadrant" ]; then
apt-get install -y --force-yes sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4
fi
#sip247 arm repository
if [ ."$database_repo" = ."sip247" ]; then
echo 'deb http://repo.sip247.com/debian/postgresql-armhf jessie main' > /etc/apt/sources.list.d/pgsql-sip247.list
wget --quiet -O - http://repo.sip247.com/debian/sip247.com.gpg.key | apt-key add -
apt-get update && apt-get upgrade -y
apt-get install -y --force-yes sudo postgresql
fi
#systemd
systemctl daemon-reload
systemctl restart postgresql