Browse Source

remove orgtools docker support

CauseFX 5 years ago
parent
commit
964e2f894e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      api/functions/update-functions.php

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

@@ -7,7 +7,8 @@ trait UpdateFunctions
 		$dockerUpdate = null;
 		$dockerUpdate = null;
 		chdir('/etc/cont-init.d/');
 		chdir('/etc/cont-init.d/');
 		if (file_exists('./30-install')) {
 		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')) {
 		} elseif (file_exists('./40-install')) {
 			$dockerUpdate = shell_exec('./40-install');
 			$dockerUpdate = shell_exec('./40-install');
 		}
 		}