mirror of https://github.com/jumpserver/jumpserver
perf: 优化entrypoint.sh
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