pull/125/head
midoks 3 years ago
parent c8fc610c16
commit d551f96a40
  1. 4
      plugins/mongodb/index.py
  2. 4
      plugins/mongodb/install.sh

@ -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:

@ -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

Loading…
Cancel
Save