mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-14 04:16:49 +00:00
ӽű
This commit is contained in:
parent
e2ac212fc3
commit
7accf70e17
13
docs/jumpserver.sh
Normal file
13
docs/jumpserver.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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
|
@ -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)
|
||||
daemon $base_dir/manage.py runserver 0.0.0.0:80 &
|
||||
daemon $base_dir/log_handler.py &
|
||||
python $base_dir/manage.py runserver 0.0.0.0:80 &
|
||||
python $base_dir/log_handler.py &
|
||||
cd $base_dir/websocket/; daemon node index.js &
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user