Browse Source

perf: 优化entrypoint.sh

pull/5169/head^2
ibuler 4 years ago committed by Jiangjie.Bai
parent
commit
96cd307d1f
  1. 10
      entrypoint.sh

10
entrypoint.sh

@ -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…
Cancel
Save