fix install bug

pull/26/head
ibuler 2015-12-18 18:02:46 +08:00
parent 0896c9ab3f
commit caa0e29564
2 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class PreSetup(object):
smtp.quit()
return True
except (SMTPAuthenticationError, socket.timeout), e:
except (SMTPAuthenticationError, socket.timeout, socket.gaierror), e:
color_print(e, 'red')
return False

View File

@ -57,6 +57,7 @@ class Setup(object):
def start(self):
print "开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"
self._sync_db()
self._input_admin()
self._create_admin()