mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
perf: 优化entrypoint.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user