Update postgres.sh

This commit is contained in:
FusionPBX 2017-04-01 02:49:17 -06:00 committed by GitHub
parent f469eac0f3
commit ce625ee7b8
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ echo 'postgresql_enable=true' >> /etc/rc.conf
#initialize the database
/usr/local/etc/rc.d/postgresql initdb
#start postgresql
if [ ."$database_version" = ."9.6" ]; then
/usr/local/bin/pg_ctl -D /var/db/postgres/data96 -l logfile start
fi
#restart the service
service postgresql restart