浏览代码

Reload the Postgres config

FusionPBX 2 年之前
父节点
当前提交
0df0c8d02d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      debian/resources/postgresql.sh

+ 3 - 0
debian/resources/postgresql.sh

@@ -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;";