During the install copy all FreeSWITCH conf files.

This commit is contained in:
Mark Crane
2014-04-07 22:35:05 +00:00
parent b9ed1f2074
commit 924ba5ac6c
2 changed files with 6 additions and 32 deletions
+6 -8
View File
@@ -1273,16 +1273,14 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
clearstatcache();
//copy resources/templates/conf to the freeswitch conf dir
if (file_exists($switch_conf_dir)) {
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
$dst_dir = $switch_conf_dir;
if (!file_exists($dst_dir)) {
if (is_readable($dst_dir)) {
$install->recursive_copy($src_dir, $dst_dir);
}
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
$dst_dir = $switch_conf_dir;
if (!file_exists($dst_dir)) {
if (is_readable($dst_dir)) {
$install->recursive_copy($src_dir, $dst_dir);
}
//print_r($install->result);
}
//print_r($install->result);
//create the dialplan/default.xml for single tenant or dialplan/domain.xml
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/dialplan")) {