Răsfoiți Sursa

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 ani în urmă
părinte
comite
1c50168943
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  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)) {
 					$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);
 				}