1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-05 20:41:34 +08:00
cosin/server/serving-api/assets/docker-entrypoint.sh
Hai Liang Wang 8f49a8023d https://github.com/cskefu/cskefu/issues/775 add application-docker.properties
Signed-off-by: Hai Liang Wang <hai@chatopera.com>
2022-12-26 13:53:54 +08:00

24 lines
485 B
Bash
Executable File

#! /bin/bash
###########################################
# Contact Center Start
###########################################
# constants
baseDir=$(cd `dirname "$0"`;pwd)
# functions
# main
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
cd $baseDir
echo ">> SPRING_PROFILES_ACTIVE="$SPRING_PROFILES_ACTIVE
# TODO, setup db or upgrade db
if [ $? -eq 0 ]; then
java -jar serving-api.jar
else
echo "Fail to resolve mysql database instance."
exit 1
fi