From 12967bb6f900f60c5778490b955e2a63655fda71 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 18 Dec 2015 16:52:36 +0800 Subject: [PATCH] fix install bug --- install/{install.py => next.py} | 20 -------------------- 1 file changed, 20 deletions(-) rename install/{install.py => next.py} (92%) diff --git a/install/install.py b/install/next.py similarity index 92% rename from install/install.py rename to install/next.py index 952efb618..7837b17a5 100644 --- a/install/install.py +++ b/install/next.py @@ -77,22 +77,6 @@ class Setup(object): with open(conf_file, 'w') as f: conf.write(f) - @staticmethod - def _rpm_repo(): - color_print('开始安装epel源', 'green') - bash('yum -y install epel-release') - - @staticmethod - def _depend_rpm(): - color_print('开始安装依赖rpm包', 'green') - bash('yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass') - - @staticmethod - def _require_pip(): - color_print('开始安装依赖pip包', 'green') - os.chdir(jms_dir) - bash('pip install -r install/requirements.txt') - def _setup_mysql(self): color_print('开始安装设置mysql (请手动设置mysql安全)', 'green') bash('yum -y install mysql-server') @@ -209,10 +193,6 @@ class Setup(object): def start(self): print "开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64" self._pull() - self._set_env() - self._rpm_repo() - self._depend_rpm() - self._require_pip() self._input_ip() self._input_mysql() self._input_smtp()