allow execute any command when using docker run

This commit is contained in:
MaysWind
2020-12-01 22:22:26 +08:00
parent c56de3b3c6
commit 50f56ccf3d
+5 -1
View File
@@ -25,4 +25,8 @@ if [ "${LAB_CONF_PATH}" != "" ]; then
conf_path_param="--conf-path=${LAB_CONF_PATH}"; conf_path_param="--conf-path=${LAB_CONF_PATH}";
fi fi
exec su-exec ${LAB_USER} /usr/local/bin/labapp/lab server run ${conf_path_param}; if [ $# -gt 0 ]; then
exec "$@"
else
exec su-exec ${LAB_USER} /usr/local/bin/labapp/lab server run ${conf_path_param};
fi