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:'::'