diff --git a/install/install.py b/install/install.py index 2c6ecc94d78b4abca8cdf39b9825d8a19f9e1e7f..cce3db2007d76055566e9aca6a12983898021bf7 100755 --- a/install/install.py +++ b/install/install.py @@ -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()