From 309dd5fdbd2f99d53a4aab44a87f1dab03b0365d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 21 Dec 2023 10:16:47 -0700 Subject: [PATCH] Remove freeswitch database and user Reason for this change is if FreeSWITCH uses the PostgreSQL then its a good idea for it to use its own instance. This is to prevent blocking FreeSWITCH from accessing the database if there is a long running Query on the FusionPBX database --- debian/resources/postgresql/create.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/debian/resources/postgresql/create.sh b/debian/resources/postgresql/create.sh index 6de2cbc..0136c71 100755 --- a/debian/resources/postgresql/create.sh +++ b/debian/resources/postgresql/create.sh @@ -15,14 +15,10 @@ sudo -u postgres psql -p $database_port -c "SET client_encoding = 'UTF8';"; #add the database users and databases sudo -u postgres psql -p $database_port -c "CREATE DATABASE fusionpbx;"; -sudo -u postgres psql -p $database_port -c "CREATE DATABASE freeswitch;"; #add the users and grant permissions sudo -u postgres psql -p $database_port -c "CREATE ROLE fusionpbx WITH SUPERUSER LOGIN PASSWORD '$database_password';" -sudo -u postgres psql -p $database_port -c "CREATE ROLE freeswitch WITH SUPERUSER LOGIN PASSWORD '$database_password';" sudo -u postgres psql -p $database_port -c "GRANT ALL PRIVILEGES ON DATABASE fusionpbx to fusionpbx;" -sudo -u postgres psql -p $database_port -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to fusionpbx;" -sudo -u postgres psql -p $database_port -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to freeswitch;" #reload the config sudo -u postgres psql -p $database_port -c "SELECT pg_reload_conf();"