车牌识别
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
635 B

2 years ago
#!/bin/sh
SPRING_PROFILE_CONFIG=""
################################################## active config start #################################################
if [ "${SPRING_PROFILES_ACTIVE}" ];then
SPRING_PROFILE_CONFIG="${SPRING_PROFILE_CONFIG} -Dspring.profiles.active='$SPRING_PROFILES_ACTIVE'"
else
SPRING_PROFILE_CONFIG="${SPRING_PROFILE_CONFIG} -Dspring.profiles.active='docker'"
fi
################################################## active config end ###################################################
sh -c "java -server ${SPRING_PROFILE_CONFIG} ${SPRING_OPTS} ${JAVA_OPTS} -jar /app/open-anpr/open-anpr-server.jar"