Update node.sh

This commit is contained in:
FusionPBX 2017-11-06 18:14:50 -07:00 committed by GitHub
parent e448e41f61
commit 0237e5fb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ if [ .$verified != ."y" ]; then
exit 0;
fi
#add the 2ndquadrant repo
if [ ."$database_version" = ."9.6" ]; then
echo 'deb http://packages.2ndquadrant.com/bdr/apt/ jessie-2ndquadrant main' > /etc/apt/sources.list.d/2ndquadrant.list
/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-9.6-bdr-plugin
fi
#iptables rules
for node in $nodes; do
iptables -A INPUT -j ACCEPT -p tcp --dport 5432 -s ${node}/32