mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Merge pull request #1282 from mafoo/Bugfix-upgrade_source
use DOCUMENT_ROOT rather than assume path
This commit is contained in:
@@ -53,7 +53,7 @@ if (sizeof($_POST) > 0) {
|
|||||||
|
|
||||||
// run source update
|
// run source update
|
||||||
if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) {
|
if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) {
|
||||||
chdir("/var/www/fusionpbx/");
|
chdir($_SERVER["DOCUMENT_ROOT"]);
|
||||||
exec("git pull", $response_source_update);
|
exec("git pull", $response_source_update);
|
||||||
$update_failed = true;
|
$update_failed = true;
|
||||||
if (sizeof($response_source_update) > 0) {
|
if (sizeof($response_source_update) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user