瀏覽代碼

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

Mark Crane 11 年之前
父節點
當前提交
1c50168943
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      resources/install.php

+ 4 - 2
resources/install.php

@@ -1276,8 +1276,10 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
 				if (file_exists($switch_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 (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);
 					//print_r($install->result);
 				}
 				}