Create dsn.sh
This commit is contained in:
parent
ac90958e69
commit
41b522b33c
|
|
@ -50,8 +50,8 @@ sudo -u postgres psql -d fusionpbx -c "insert into v_vars (var_uuid, var_name, v
|
||||||
#add the
|
#add the
|
||||||
echo "<!-- DSN -->" >> /etc/freeswitch/vars.xml
|
echo "<!-- DSN -->" >> /etc/freeswitch/vars.xml
|
||||||
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn_system=pgsql://hostaddr=127.0.0.1 dbname=fusionpbx user=fusionpbx password=$database_password options=\" />" >> /etc/freeswitch/vars.xml
|
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn_system=pgsql://hostaddr=127.0.0.1 dbname=fusionpbx user=fusionpbx password=$database_password options=\" />" >> /etc/freeswitch/vars.xml
|
||||||
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn_system=dsn=pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=fusionpbx password=$database_password options=\" />" >> /etc/freeswitch/vars.xml
|
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn=pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=fusionpbx password=$database_password options=\" />" >> /etc/freeswitch/vars.xml
|
||||||
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn_system=dsn_callcenter=sqlite:///usr/local/freeswitch/db/call_center.db\" />" >> /etc/freeswitch/vars.xml
|
echo "<X-PRE-PROCESS cmd=\"set\" data=\"dsn_callcenter=sqlite:///usr/local/freeswitch/db/call_center.db\" />" >> /etc/freeswitch/vars.xml
|
||||||
|
|
||||||
#remove the sqlite database files
|
#remove the sqlite database files
|
||||||
rm /var/lib/freeswitch/db/core.db
|
rm /var/lib/freeswitch/db/core.db
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue