Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
arc0035 committed Nov 4, 2023
1 parent 3fa86f7 commit 1d9ced0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ CLASSPATH='conf/:apps/*:lib/*'
CURRENT_DIR=$(pwd)/
LOG_DIR=${CURRENT_DIR}log
CONF_DIR=${CURRENT_DIR}conf
if [ ${DBPWD}"" = "" ];then
echo no need to override config
elif
if [[ -n "$DBPWD" ]];then
sed "s/{{SPRING_DATASOURCE_PASSWORD}}/$DBPWD/g" conf/application-template.yml > conf/application.yml

else
echo "by hand"
fi

SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
Expand Down

0 comments on commit 1d9ced0

Please sign in to comment.