mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 19:29:48 +00:00
修复centos7安装报错-平台不支持 (#603)
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user