Skip to content

Commit

Permalink
Merge pull request #63 from shopware/use-database-host-if-available
Browse files Browse the repository at this point in the history
Use DATABASE_(HOST|PORT) if available
  • Loading branch information
shyim authored Jan 29, 2024
2 parents 4a30613 + 99f3c50 commit 2f3021e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/local/shopware/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
set -e

wait_for_mysql() {
database_host=$(trurl "$DATABASE_URL" --get '{host}')
database_port=$(trurl "$DATABASE_URL" --get '{port}')
database_host=${DATABASE_HOST:-"$(trurl "$DATABASE_URL" --get '{host}')"}
database_port=${DATABASE_PORT:-"$(trurl "$DATABASE_URL" --get '{port}')"}
MYSQL_WAIT_SECONDS=${MYSQL_WAIT_SECONDS:-20}

try=0
Expand Down

0 comments on commit 2f3021e

Please sign in to comment.