mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Changed upgrade to use PROJECT_ROOT instead
This commit is contained in:
@@ -52,7 +52,7 @@ if (sizeof($_POST) > 0) {
|
||||
|
||||
// run source update
|
||||
if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) {
|
||||
chdir($_SERVER["DOCUMENT_ROOT"]);
|
||||
chdir($_SERVER["PROJECT_ROOT"]);
|
||||
exec("git pull", $response_source_update);
|
||||
$update_failed = true;
|
||||
if (sizeof($response_source_update) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user