Parcourir la source

Merge branch 'master' into fax_queue

Alexey Melnichuk il y a 9 ans
Parent
commit
60cded29ab
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {