瀏覽代碼

Add pg_reload_config

FusionPBX 3 年之前
父節點
當前提交
c6e1b8f60b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      debian/resources/postgresql/create.sh

+ 4 - 1
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