提交 a114e173 编写于 作者: V vincent927 提交者: baltery

修复centos7安装报错-平台不支持 (#603)

上级 402df810
......@@ -90,7 +90,7 @@ class PreSetup(object):
@property
def _is_centos7(self):
if self.dist.startswith("centos") and self.version.startswith("7"):
if self.dist.startswith("centos") or self.dist.startswith("centos linux") and self.version.startswith("7"):
return True
@property
......@@ -104,7 +104,7 @@ class PreSetup(object):
return True
def check_platform(self):
if not (self._is_redhat or self._is_ubuntu):
if not (self._is_redhat or self._is_ubuntu or self._is_centos7):
print(u"支持的平台: CentOS, RedHat, Fedora, Oracle Linux, Debian, Ubuntu, Amazon Linux, 暂不支持其他平台安装.")
exit()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册