|
@@ -15,14 +15,10 @@ sudo -u postgres psql -p $database_port -c "SET client_encoding = 'UTF8';";
|
|
|
|
|
|
#add the database users and databases
|
|
#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 fusionpbx;";
|
|
-sudo -u postgres psql -p $database_port -c "CREATE DATABASE freeswitch;";
|
|
|
|
|
|
|
|
#add the users and grant permissions
|
|
#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 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 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
|
|
#reload the config
|
|
sudo -u postgres psql -p $database_port -c "SELECT pg_reload_conf();"
|
|
sudo -u postgres psql -p $database_port -c "SELECT pg_reload_conf();"
|