Skip to content

Commit

Permalink
Generate mysql cli config
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis authored Mar 26, 2020
1 parent f71db30 commit 96e444b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/docker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ composer install

composer wp-install

cat > $HOME/.my.cnf <<EOF
[client]
user=${WPTT_DB_USER}
password=${WPTT_DB_PASSWORD}
host=${WPTT_DB_HOST}
database=${WPTT_DB_NAME}
EOF


if [ "$(wp-install --status)" = "full" ]; then
>&2 echo "WP is running at http://localhost:8080/ and run tests against it using 'docker/run shell'"
Expand Down

0 comments on commit 96e444b

Please sign in to comment.