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

This commit is contained in:
vincent927
2017-08-07 16:44:11 +08:00
committed by 老广
parent 402df81048
commit a114e173e0

View File

@@ -90,7 +90,7 @@ class PreSetup(object):
@property @property
def _is_centos7(self): 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 return True
@property @property
@@ -104,7 +104,7 @@ class PreSetup(object):
return True return True
def check_platform(self): 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, 暂不支持其他平台安装.") print(u"支持的平台: CentOS, RedHat, Fedora, Oracle Linux, Debian, Ubuntu, Amazon Linux, 暂不支持其他平台安装.")
exit() exit()