perf: 优化entrypoint.sh

pull/5169/head^2
ibuler 2020-12-03 14:01:26 +08:00 committed by Jiangjie.Bai
parent 6385cb3f86
commit 96cd307d1f
1 changed files with 4 additions and 6 deletions

View File

@ -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