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 fi
} }
service="all" action="${1-start}"
if [[ "$1" != "" ]];then service="${2-all}"
service=$1
fi
trap cleanup EXIT trap cleanup EXIT
if [[ "$1" == "bash" ]];then if [[ "$action" == "bash" || "$action" == "sh" ]];then
bash bash
else else
python jms start ${service} python jms "${action}" "${service}"
fi fi