浏览代码

update the switch database directory

FusionPBX 2 年之前
父节点
当前提交
a1bb6b86c3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      debian/resources/switch/dsn.sh

+ 3 - 0
debian/resources/switch/dsn.sh

@@ -26,6 +26,9 @@ sed -i /etc/freeswitch/autoload_configs/db.conf.xml -e s:'<!--<param name="odbc-
 sed -i /etc/freeswitch/autoload_configs/fifo.conf.xml -e s:'<!--<param name="odbc-dsn" value="$${dsn}"/>-->:<param name="odbc-dsn" value="$${dsn}"/>:'
 sed -i /etc/freeswitch/autoload_configs/switch.conf.xml -e s:'<!-- <param name="core-db-dsn" value="$${dsn}" /> -->:<param name="core-db-dsn" value="$${dsn}" />:'
 
+#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';";