Update postgres.sh

This commit is contained in:
FusionPBX 2017-04-01 15:17:00 -06:00 committed by GitHub
parent eafca0e4ff
commit 2bc7bf24ee
1 changed files with 5 additions and 5 deletions

View File

@ -19,19 +19,19 @@ echo "Install PostgreSQL and create the database and users\n"
#postgres install
if [ ."$database_version" = ."9.6" ]; then
#pkg install --yes postgresql96-server
portsnap fetch update cd /usr/ports/databases/postgresql96-server/ && make install clean
portsnap fetch update cd /usr/ports/databases/postgresql96-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."9.5" ]; then
#pkg install --yes postgresql95-server
portsnap fetch update cd /usr/ports/databases/postgresql95-server/ && make install clean
portsnap fetch update cd /usr/ports/databases/postgresql95-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."9.4" ]; then
#pkg install --yes postgresql94-server
portsnap fetch update cd /usr/ports/databases/postgresql94-server/ && make install clean
portsnap fetch update cd /usr/ports/databases/postgresql94-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."9.3" ]; then
#pkg install --yes postgresql93-server
portsnap fetch update cd /usr/ports/databases/postgresql93-server/ && make install clean
portsnap fetch update cd /usr/ports/databases/postgresql93-server/ && make install clean BATCH=yes
fi
#update the list of executables in the path
@ -58,7 +58,7 @@ if [ ."$database_version" = ."9.4" ]; then
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data94 -l logfile start
fi
if [ ."$database_version" = ."9.3" ]; then
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data93 -l logfile start
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data93 -l logfile start clean BATCH=yes
fi
#restart the service