forked from norman/fusionpbx-install.sh-github-mirror
Reload the Postgres config
This commit is contained in:
3
debian/resources/postgresql.sh
vendored
3
debian/resources/postgresql.sh
vendored
@@ -109,6 +109,9 @@ cwd=$(pwd)
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
||||||
if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then
|
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
|
# add the databases, users and grant permissions to them
|
||||||
sudo -u postgres psql -c "CREATE DATABASE fusionpbx;";
|
sudo -u postgres psql -c "CREATE DATABASE fusionpbx;";
|
||||||
sudo -u postgres psql -c "CREATE DATABASE freeswitch;";
|
sudo -u postgres psql -c "CREATE DATABASE freeswitch;";
|
||||||
|
|||||||
Reference in New Issue
Block a user