From b39cd77801c81fd7835de3de25e1f380da7c0288 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 15 Jun 2017 09:41:59 -0700 Subject: [PATCH] Create dsn.sh --- debian/resources/postgresql/dsn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/resources/postgresql/dsn.sh b/debian/resources/postgresql/dsn.sh index 6f700bc..33e8956 100644 --- a/debian/resources/postgresql/dsn.sh +++ b/debian/resources/postgresql/dsn.sh @@ -20,6 +20,9 @@ export PGPASSWORD=$database_password #disable auto create schemas sed -i /etc/freeswitch/autoload_configs/switch.conf.xml -e s:'::' +#load the schema +sudo -u postgres psql -d freeswitch -f /var/www/fusionpbx/resources/install/sql/switch.sql -L /tmp/schema.log; + #enable odbc-dsn in the xml sed -i /etc/freeswitch/autoload_configs/db.conf.xml -e s:'::' sed -i /etc/freeswitch/autoload_configs/fifo.conf.xml -e s:'::'