Explorar el Código

remove orgtools docker support

CauseFX hace 5 años
padre
commit
964e2f894e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      api/functions/update-functions.php

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

@@ -7,7 +7,8 @@ trait UpdateFunctions
 		$dockerUpdate = null;
 		chdir('/etc/cont-init.d/');
 		if (file_exists('./30-install')) {
-			$dockerUpdate = shell_exec('./30-install');
+			$this->setAPIResponse('error', 'Update failed - OrgTools is deprecated - please use organizr/organizr', 500);
+			return false;
 		} elseif (file_exists('./40-install')) {
 			$dockerUpdate = shell_exec('./40-install');
 		}