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
7accf70e
Commit
7accf70e
authored
Apr 20, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ӽű
parent
e2ac212f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
jumpserver.sh
docs/jumpserver.sh
+13
-0
service.sh
service.sh
+2
-3
No files found.
docs/jumpserver.sh
0 → 100644
View file @
7accf70e
#!/bin/bash
if
[
$USER
==
'admin'
]
||
[
$USER
==
'root'
]
;
then
echo
""
else
python /opt/jumpserver/connect.py
if
[
$USER
==
'guanghongwei'
]
;
then
echo
else
exit
3
echo
fi
fi
service.sh
View file @
7accf70e
...
...
@@ -5,14 +5,13 @@
# Author: jumpserver group
.
/etc/init.d/functions
export
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/node/bin
base_dir
=
$(
dirname
$0
)
case
$1
in
start
)
daem
on
$base_dir
/manage.py runserver 0.0.0.0:80 &
daem
on
$base_dir
/log_handler.py &
pyth
on
$base_dir
/manage.py runserver 0.0.0.0:80 &
pyth
on
$base_dir
/log_handler.py &
cd
$base_dir
/websocket/
;
daemon node index.js &
;;
...
...
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