Reload the Postgres config

This commit is contained in:
FusionPBX 2023-09-06 17:17:52 -06:00 committed by GitHub
parent 359eb22185
commit 0df0c8d02d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ cwd=$(pwd)
cd /tmp
if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then
#reload the config
sudo -u postgres psql -c "SELECT pg_reload_conf();"
# add the databases, users and grant permissions to them
sudo -u postgres psql -c "CREATE DATABASE fusionpbx;";
sudo -u postgres psql -c "CREATE DATABASE freeswitch;";