During the install copy all FreeSWITCH conf files.
This commit is contained in:
parent
c292635b67
commit
30154f5e5d
|
|
@ -58,30 +58,6 @@ include "root.php";
|
||||||
copy($src.'/'.$file, $dst.'/'.$file);
|
copy($src.'/'.$file, $dst.'/'.$file);
|
||||||
//echo "copy(".$src."/".$file.", ".$dst."/".$file.");<br />\n";
|
//echo "copy(".$src."/".$file.", ".$dst."/".$file.");<br />\n";
|
||||||
}
|
}
|
||||||
//check the file type by ext
|
|
||||||
//if (substr($file, -3) == "lua") {
|
|
||||||
//set the exception default
|
|
||||||
//$exception = false;
|
|
||||||
//set the exceptions
|
|
||||||
//if ($file == "database_handle.lua") { $exception = true; }
|
|
||||||
//check for exceptions
|
|
||||||
//if ($exception) {
|
|
||||||
// //file does not exist, save a copy in the destination directory
|
|
||||||
// if (!file_exists($dst.'/'.$file)) {
|
|
||||||
// copy($src.'/'.$file, $dst.'/'.$file);
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
//else {
|
|
||||||
//write over the file
|
|
||||||
// copy($src.'/'.$file, $dst.'/'.$file);
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
//else {
|
|
||||||
//file does not exist, save a copy in the destination directory
|
|
||||||
//if (!file_exists($dst.'/'.$file)) {
|
|
||||||
// copy($src.'/'.$file, $dst.'/'.$file);
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1273,16 +1273,14 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
//copy resources/templates/conf to the freeswitch conf dir
|
//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";
|
||||||
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
|
$dst_dir = $switch_conf_dir;
|
||||||
$dst_dir = $switch_conf_dir;
|
if (!file_exists($dst_dir)) {
|
||||||
if (!file_exists($dst_dir)) {
|
if (is_readable($dst_dir)) {
|
||||||
if (is_readable($dst_dir)) {
|
$install->recursive_copy($src_dir, $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
|
//create the dialplan/default.xml for single tenant or dialplan/domain.xml
|
||||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/dialplan")) {
|
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/dialplan")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue