From ce625ee7b833358ed0deeeec1fbfd2c613c614c9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 1 Apr 2017 02:49:17 -0600 Subject: [PATCH] Update postgres.sh --- freebsd/resources/postgres.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freebsd/resources/postgres.sh b/freebsd/resources/postgres.sh index 41c21df..3c6a31b 100755 --- a/freebsd/resources/postgres.sh +++ b/freebsd/resources/postgres.sh @@ -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