mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-21 07:49:45 +00:00
perf: 优化entrypoint.sh
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user