Commit ad3178fe authored by yumaojun's avatar yumaojun

fix (install.py):  compatable centos7

1. use systemctl  stop firewalld
2. add  dependence:  readline-devel and lrzsz
parent ccd1a108
......@@ -82,6 +82,7 @@ class PreSetup(object):
self.key = ''.join(random.choice(string.ascii_lowercase + string.digits) \
for _ in range(16))
self.dist = platform.dist()[0].lower()
self.version = platform.dist()[1]
@property
def _is_redhat(self):
......@@ -90,10 +91,8 @@ class PreSetup(object):
@property
def _is_centos7(self):
version = platform.dist()[1]
if self._is_redhat:
if version.startswith("7"):
return True
if self.dist == "centos" and self.version.startswith("7"):
return True
@property
def _is_ubuntu(self):
......
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