mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
perf: 优化entrypoint.sh
This commit is contained in:
parent
6385cb3f86
commit
96cd307d1f
@ -7,15 +7,13 @@ function cleanup()
|
||||
fi
|
||||
}
|
||||
|
||||
service="all"
|
||||
if [[ "$1" != "" ]];then
|
||||
service=$1
|
||||
fi
|
||||
action="${1-start}"
|
||||
service="${2-all}"
|
||||
|
||||
trap cleanup EXIT
|
||||
if [[ "$1" == "bash" ]];then
|
||||
if [[ "$action" == "bash" || "$action" == "sh" ]];then
|
||||
bash
|
||||
else
|
||||
python jms start ${service}
|
||||
python jms "${action}" "${service}"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user