From a1c630afbd7c6672c5f7de8a957dcf884135b451 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 27 Mar 2014 04:09:05 +0000 Subject: [PATCH] Check to see if the /etc/fusionpbx/conf/freeswitch.xml file already exists and if so do not copy the conf directory. --- resources/install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/install.php b/resources/install.php index b8f2d67bea..1c3310621e 100644 --- a/resources/install.php +++ b/resources/install.php @@ -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); }