Fix the SIP profiles for the package install

This commit is contained in:
Mark Crane
2014-08-12 19:18:36 +00:00
parent c4136913d6
commit 6e6c58ad08
3 changed files with 128 additions and 92 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Copyright (C) 2010
Copyright (C) 2010-2014
All Rights Reserved.
Contributor(s):
@@ -36,7 +36,7 @@ include "root.php";
var $switch_sounds_dir;
//$option '-n' --no-clobber
function recursive_copy($src, $dst, $option = '') {
public function recursive_copy($src, $dst, $option = '') {
if (file_exists('/bin/cp')) {
exec ('cp -RLp '.$option.' '.$src.'/* '.$dst);
}
+3 -3
View File
@@ -55,10 +55,10 @@ require_once "resources/functions.php";
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
//original directory
$config_exists = true;
} elseif (file_exists("/etc/fusionpbx/config.php")){
} elseif (file_exists("/etc/fusionpbx/config.php")) {
//linux
$config_exists = true;
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
$config_exists = true;
}
if ($config_exists) {
@@ -787,7 +787,7 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
if (file_exists('/usr/share/fusionpbx/resources/install/sql/mysql.sql')){
$filename = "/usr/share/fusionpbx/resources/install/sql/mysql.sql";
}
else {
else {
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/mysql.sql';
}
$file_contents = file_get_contents($filename);