Browse Source

fix install script bug

pull/26/head
ibuler 9 years ago
parent
commit
42f6392cc4
  1. 2
      install/next.py
  2. 26
      service.sh

2
install/next.py

@ -89,7 +89,7 @@ class Setup(object):
def _run_service():
os.system('sh %s start' % os.path.join(jms_dir, 'service.sh'))
print
color_print('安装成功,请访问web, 祝你使用愉快。请访问 https://github.com/ibuler/jumpserver 查看文档')
color_print('安装成功,请访问web, 祝你使用愉快。请访问 https://github.com/ibuler/jumpserver 查看文档', 'green')
def start(self):
print "开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"

26
service.sh

@ -53,23 +53,17 @@ stop() {
echo -n $"Stopping ${PROC_NAME} service:"
if [ -e $lockfile ];then
ps aux | grep -E 'manage.py|run_websocket.py' | grep -v grep | awk '{print $2}' | xargs kill -9 &> /dev/null
ret=$?
if [ $ret -eq 0 ]; then
echo_success
echo
rm -f "$lockfile"
else
echo_failure
echo
rm -f "$lockfile"
fi
ps aux | grep -E 'manage.py|run_websocket.py' | grep -v grep | awk '{print $2}' | xargs kill -9 &> /dev/null
ret=$?
if [ $ret -eq 0 ]; then
echo_success
echo
rm -f "$lockfile"
else
echo_success
echo
echo_failure
echo
rm -f "$lockfile"
fi
}

Loading…
Cancel
Save