From d551f96a40e90ef5143ceaa38af022e941eb78b9 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 12 Jul 2022 22:43:01 +0800 Subject: [PATCH] up --- plugins/mongodb/index.py | 4 ++-- plugins/mongodb/install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index ee80ea48e..7e551167a 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -238,8 +238,8 @@ def installPreInspection(version): sysName = sys[0].strip().lower() sysId = sys_id[0].strip() - if not sysName in ('centos', 'ubuntu', 'debian'): - return '暂时仅支持centos,ubuntu,debian' + if not sysName in ('centos', 'fedora', 'ubuntu', 'debian'): + return '暂时仅不支持{}'.format(sysName) if sysName == 'debian': if version > 10: diff --git a/plugins/mongodb/install.sh b/plugins/mongodb/install.sh index c94b2506a..88ea41ba6 100755 --- a/plugins/mongodb/install.sh +++ b/plugins/mongodb/install.sh @@ -208,7 +208,7 @@ Install_app_linux() Install_Linux_Ubuntu elif [ "$OSNAME" == "debian" ];then Install_Linux_Debian - elif [ "$OSNAME" == "centos" ];then + elif [ "$OSNAME" == "centos" ] || [ "$OSNAME" == "fedora" ];then Install_Linux_CentOS elif [ "$OSNAME" == "opensuse" ];then Install_Linux_Opensuse @@ -250,7 +250,7 @@ if [ "$OSNAME" == "ubuntu" ];then Uninstall_Linux_Ubuntu elif [ "$OSNAME" == "debian" ];then Uninstall_Linux_Debian -elif [ "$OSNAME" == "centos" ];then +elif [ "$OSNAME" == "centos" ] || [ "$OSNAME" == "fedora" ];then Uninstall_Linux_CentOS elif [ "$OSNAME" == "opensuse" ];then Uninstall_Linux_Opensuse