Check to see if the /etc/fusionpbx/conf/freeswitch.xml file already exists and if so do not copy the conf directory.

This commit is contained in:
Mark Crane
2014-03-27 04:09:05 +00:00
parent 34bbfa6031
commit a1c630afbd

View File

@@ -1276,8 +1276,10 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
if (file_exists($switch_conf_dir)) {
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
$dst_dir = $switch_conf_dir;
if (is_readable($dst_dir)) {
$install->recursive_copy($src_dir, $dst_dir);
if (!file_exists("/etc/fusionpbx/conf/freeswitch.xml") {
if (is_readable($dst_dir)) {
$install->recursive_copy($src_dir, $dst_dir);
}
}
//print_r($install->result);
}