From c6e1b8f60bba4c7d82efcc54d76dbe220fffec6d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 15 Jan 2022 18:56:22 -0700 Subject: [PATCH] Add pg_reload_config --- debian/resources/postgresql/create.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/resources/postgresql/create.sh b/debian/resources/postgresql/create.sh index 0da9048..6de2cbc 100755 --- a/debian/resources/postgresql/create.sh +++ b/debian/resources/postgresql/create.sh @@ -24,5 +24,8 @@ sudo -u postgres psql -p $database_port -c "GRANT ALL PRIVILEGES ON DATABASE fus 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();" + #restart postgres -service postgresql restart +#systemctl restart postgresql