Commit a114e173 authored by vincent927's avatar vincent927 Committed by 老广

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

parent 402df810
...@@ -90,7 +90,7 @@ class PreSetup(object): ...@@ -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): ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment