浏览代码

remove orgtools docker support

CauseFX 6 年之前
父节点
当前提交
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');
 		}