Skip to content

Commit

Permalink
Merge pull request #52 from Dapp-Learning-DAO/feature/better
Browse files Browse the repository at this point in the history
.
  • Loading branch information
hotaplayer authored Nov 4, 2023
2 parents 05344fd + 3fa86f7 commit 98dd8c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ CLASSPATH='conf/:apps/*:lib/*'
CURRENT_DIR=$(pwd)/
LOG_DIR=${CURRENT_DIR}log
CONF_DIR=${CURRENT_DIR}conf
sed "s/{{SPRING_DATASOURCE_PASSWORD}}/$DBPWD/g" conf/application-template.yml > conf/application.yml
if [ ${DBPWD}"" = "" ];then
echo no need to override config
elif
sed "s/{{SPRING_DATASOURCE_PASSWORD}}/$DBPWD/g" conf/application-template.yml > conf/application.yml

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 98dd8c5

Please sign in to comment.