mirror of https://github.com/jumpserver/jumpserver
perf: 优化entrypoint.sh
parent
6385cb3f86
commit
96cd307d1f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue