Simplify the upgrade process by automatically moving includes/config.php to the resources/config.php. As includes directory has been deprecated.
This commit is contained in:
parent
bdd7ed37d8
commit
604ccfbd17
|
|
@ -30,6 +30,9 @@ include "root.php";
|
||||||
//do nothing
|
//do nothing
|
||||||
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
||||||
//original directory
|
//original directory
|
||||||
|
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) {
|
||||||
|
//move config.php from the includes to resources directory.
|
||||||
|
rename($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php", $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php");
|
||||||
} elseif (file_exists("/etc/fusionpbx/config.php")){
|
} elseif (file_exists("/etc/fusionpbx/config.php")){
|
||||||
//linux
|
//linux
|
||||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
|
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue