diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 35294d221..16646fe52 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -3470,8 +3470,8 @@ def installPreInspection(version): sysName = sys[0].strip().lower() sysId = sys_id[0].strip() - if not sysName in ['centos','almalinux','rocky']: - return '仅支持centos,almalinux,rocky' + if not sysName in ['centos','almalinux','rocky','opensuse']: + return '仅支持centos,almalinux,rocky,opensuse' if (sysName == 'centos' and version == '5.7' and not sysId in('7',)): return 'mysql5.7 仅支持centos7' diff --git a/plugins/mysql-yum/versions/8.0/install.sh b/plugins/mysql-yum/versions/8.0/install.sh index 7f19d812e..64e55c9de 100755 --- a/plugins/mysql-yum/versions/8.0/install.sh +++ b/plugins/mysql-yum/versions/8.0/install.sh @@ -35,7 +35,7 @@ if [ "$OSNAME" == "centos" ];then OS_SIGN=1.el${VERSION_ID} elif [ "$OSNAME" == "fedora" ]; then OS_SIGN=10.fc${VERSION_ID} -elif [ "$OSNAME" == "suse" ]; then +elif [ "$OSNAME" == "opensuse" ]; then OS_SIGN=1.sl${VERSION_ID} fi