From cc253839b0aab704c2e77da5068b497bbaf404ae Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 20 Nov 2017 22:02:08 -0700 Subject: [PATCH] Update node.sh --- debian/resources/postgresql/node.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/debian/resources/postgresql/node.sh b/debian/resources/postgresql/node.sh index b96318a..90d06a3 100755 --- a/debian/resources/postgresql/node.sh +++ b/debian/resources/postgresql/node.sh @@ -116,20 +116,6 @@ service postgresql restart cwd=$(pwd) cd /tmp -#set client encoding -sudo -u postgres psql -c "SET client_encoding = 'UTF8';"; - -#add the database users and databases -sudo -u postgres psql -c "CREATE DATABASE fusionpbx;"; -sudo -u postgres psql -c "CREATE DATABASE freeswitch;"; - -#add the users and grant permissions -sudo -u postgres psql -c "CREATE ROLE fusionpbx WITH SUPERUSER LOGIN PASSWORD '$database_password';" -sudo -u postgres psql -c "CREATE ROLE freeswitch WITH SUPERUSER LOGIN PASSWORD '$database_password';" -sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE fusionpbx to fusionpbx;" -sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to fusionpbx;" -sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to freeswitch;" - #add the postgres extensions sudo -u postgres psql -d fusionpbx -c "CREATE EXTENSION btree_gist;"; sudo -u postgres psql -d fusionpbx -c "CREATE EXTENSION bdr;";