Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
42f6392c
Commit
42f6392c
authored
Dec 21, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix install script bug
parent
835e32b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
next.py
install/next.py
+1
-1
service.sh
service.sh
+10
-16
No files found.
install/next.py
View file @
42f6392c
...
...
@@ -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"
...
...
service.sh
View file @
42f6392c
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment