瀏覽代碼

Update finish.sh

FusionPBX 2 年之前
父節點
當前提交
8e1a43fbf7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      freebsd/resources/finish.sh

+ 1 - 0
freebsd/resources/finish.sh

@@ -29,6 +29,7 @@ if [ .$nginx_enabled = .'true' ]; then
 	sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
 	sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
 
 
 	#add the config.conf
 	#add the config.conf
+	mkdir -p /usr/local/etc/fusionpbx
 	cp fusionpbx/config.conf /usr/local/etc/fusionpbx
 	cp fusionpbx/config.conf /usr/local/etc/fusionpbx
 	sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.conf
 	sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.conf
 	sed -i' ' -e s:"{database_name}:$database_name:" /usr/local/etc/fusionpbx/config.conf
 	sed -i' ' -e s:"{database_name}:$database_name:" /usr/local/etc/fusionpbx/config.conf