Преглед изворни кода

remove orgtools docker support

CauseFX пре 5 година
родитељ
комит
964e2f894e
1 измењених фајлова са 2 додато и 1 уклоњено
  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');
 		}