Przeglądaj źródła

fixing /usr/share/fusionpbx to be /usr/share/examples/fusionpbx

Richard Neese 11 lat temu
rodzic
commit
6173d6ac5e
3 zmienionych plików z 8 dodań i 8 usunięć
  1. 1 1
      core/upgrade/index.php
  2. 1 1
      resources/classes/install.php
  3. 6 6
      resources/install.php

+ 1 - 1
core/upgrade/index.php

@@ -122,7 +122,7 @@ echo "<br><br><br>";
 
 echo "<form name='frm' method='post' action=''>\n";
 
-if (permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) {
+if (permission_exists("upgrade_svn") && !is_dir("/usr/share/examples/fusionpbx")) {
 	echo "<table width='100%'  border='0' cellpadding='6' cellspacing='0'>\n";
 	echo "<tr>\n";
 	echo "	<td width='30%' class='vncell'>\n";

+ 1 - 1
resources/classes/install.php

@@ -162,7 +162,7 @@ include "root.php";
 		//function copy_sounds() {
 		//	if (file_exists($this->switch_sounds_dir)) {
 		//			if (file_exists('/usr/share/examples/fusionpbx/resources/install/sounds/en/us/callie/custom/')){
-		//			$src_dir = '/usr/share/fusionpbx/resources/install/sounds/en/us/callie/custom/';
+		//			$src_dir = '/usr/share/examples/fusionpbx/resources/install/sounds/en/us/callie/custom/';
 					// changes the output dir for testing
 		//			$dst_dir = $this->switch_sounds_dir.'/en/us/fusionpbx/custom/';
 		//		}

+ 6 - 6
resources/install.php

@@ -541,8 +541,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
 				$schema->exec();
 
 			//get the contents of the sql file
-				if (file_exists('/usr/share/fusionpbx/resources/install/sql/sqlite.sql')){
-					$filename = "/usr/share/fusionpbx/resources/install/sql/sqlite.sql";
+				if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql')){
+					$filename = "/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql";
 				}
 				else {
 				$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/sqlite.sql';
@@ -631,8 +631,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
 				$schema->exec();
 
 			//get the contents of the sql file
-				if (file_exists('/usr/share/fusionpbx/resources/install/sql/pgsql.sql')){
-					$filename = "/usr/share/fusionpbx/resources/install/sql/pgsql.sql";
+				if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql')){
+					$filename = "/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql";
 				}
 				else {
 				$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/pgsql.sql';
@@ -803,8 +803,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
 
 			//add the defaults data into the database
 				//get the contents of the sql file
-				if (file_exists('/usr/share/fusionpbx/resources/install/sql/mysql.sql')){
-					$filename = "/usr/share/fusionpbx/resources/install/sql/mysql.sql";
+				if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql')){
+					$filename = "/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql";
 				}
 				else {
 					$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/mysql.sql';