From d52fcaef1f9e842e03537033a400dfe6ad4e0518 Mon Sep 17 00:00:00 2001 From: johnniesong Date: Wed, 12 Apr 2017 17:30:32 +0800 Subject: [PATCH 1/2] Update install.py python 2.6 version install failed, sys.version_info is tuple. --- install.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index 2ca63e72..0543b59e 100644 --- a/install.py +++ b/install.py @@ -95,7 +95,11 @@ def exec_sys_cmd(cmd, accept_failed = False): return False def common_input( s ): - if sys.version_info.major == 3: + if isinstance(sys.version_info,types.TupleType): + pyMajorVersion=sys.version_info[0] + else: + pyMajorVersion=sys.version_info.major + if pyMajorVersion == 3: return input( s ) else: return raw_input( s ) From 6f7981e8cadb2e3c85d216d1beab4343b825e031 Mon Sep 17 00:00:00 2001 From: johnniesong Date: Wed, 12 Apr 2017 18:01:09 +0800 Subject: [PATCH 2/2] wget --no-check-certificate wget --no-check-certificate --- install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.py b/install.py index 0543b59e..860dc094 100644 --- a/install.py +++ b/install.py @@ -38,7 +38,7 @@ def install_openresty( ): if down_flag == True: print('### start download openresty package...') exec_sys_cmd('rm -rf ' + openresty_pkg) - exec_sys_cmd( 'wget ' + openresty_pkg_url ) + exec_sys_cmd( 'wget --no-check-certificate ' + openresty_pkg_url ) else: print('### use local openresty package...')