Browse Source

fix linux update api script call

CauseFX 4 years ago
parent
commit
a8f8cc4a50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/update-functions.php

+ 1 - 1
api/functions/update-functions.php

@@ -65,7 +65,7 @@ trait UpdateFunctions
 			$this->setResponse(409, 'Your install type is not Linux');
 			return false;
 		}
-		$branch = $this->config['branch'] == 'v2-master';
+		$branch = $this->config['branch'];
 		ini_set('max_execution_time', 0);
 		set_time_limit(0);
 		$logFile = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'log.txt';