From a1bb6b86c35790ea751f405c2a9f444dd68b39c6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 23 Dec 2022 15:51:19 -0700 Subject: [PATCH] update the switch database directory --- debian/resources/switch/dsn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/resources/switch/dsn.sh b/debian/resources/switch/dsn.sh index 08de390..e3aea93 100755 --- a/debian/resources/switch/dsn.sh +++ b/debian/resources/switch/dsn.sh @@ -26,6 +26,9 @@ sed -i /etc/freeswitch/autoload_configs/db.conf.xml -e s:'::' sed -i /etc/freeswitch/autoload_configs/switch.conf.xml -e s:'::' +#update the switch database directory +sed -i /etc/fusionpbx/config.conf -e s:'/var/lib/freeswitch/db:/dev/shm:' + #enable odbc-dsn in the sip profiles sudo -u postgres psql -h $database_host -p $database_port -U fusionpbx -d fusionpbx -c "update v_sip_profile_settings set sip_profile_setting_enabled = 'true' where sip_profile_setting_name = 'odbc-dsn';";