Browse Source

Merge pull request #1282 from mafoo/Bugfix-upgrade_source

use DOCUMENT_ROOT rather than assume path
FusionPBX 9 years ago
parent
commit
47c7ae8904
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/upgrade/index.php

+ 1 - 1
core/upgrade/index.php

@@ -53,7 +53,7 @@ if (sizeof($_POST) > 0) {
 
 	// run source update
 	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);
 		$update_failed = true;
 		if (sizeof($response_source_update) > 0) {