From 5402af8df7d53d76fc7e17eadf8b0b7975c91b25 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 16 Oct 2026 12:38:11 +0800 Subject: [PATCH] Update index.py --- plugins/rapira/index.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plugins/rapira/index.py b/plugins/rapira/index.py index 36663853c..7b4e7e978 100755 --- a/plugins/rapira/index.py +++ b/plugins/rapira/index.py @@ -932,22 +932,6 @@ def installPreInspection(version): sysName = sys[0].strip().lower() sysId = sys_id[0].strip() - - if sysName == 'ubuntu': - return 'ubuntu已经安装不了' - - if sysName == 'debian' and int(sysId) > 10: - return 'ok' - - if sysName == 'centos' and int(sysId) > 8: - return 'centos[{}]不可以安装'.format(sysId) - - if sysName == 'fedora': - sys_id = mw.execShell( - "cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}'") - sysId = sys_id[0].strip() - if int(sysId) > 31: - return 'fedora[{}]不可安装'.format(sysId) return 'ok'