mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user