Explorar o código

fix linux update api script call

CauseFX %!s(int64=4) %!d(string=hai) anos
pai
achega
a8f8cc4a50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');
 			$this->setResponse(409, 'Your install type is not Linux');
 			return false;
 			return false;
 		}
 		}
-		$branch = $this->config['branch'] == 'v2-master';
+		$branch = $this->config['branch'];
 		ini_set('max_execution_time', 0);
 		ini_set('max_execution_time', 0);
 		set_time_limit(0);
 		set_time_limit(0);
 		$logFile = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'log.txt';
 		$logFile = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'log.txt';