Skip to content

Commit

Permalink
Add -T parameters to make create-database works on CD/CI
Browse files Browse the repository at this point in the history
  • Loading branch information
omarlopesino committed Mar 19, 2024
1 parent 3b3e47f commit bff202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ PROJECT_ROOT="./"
MYSQL_ROOT_PASS=`egrep DB_ROOT_PASSWORD ${PROJECT_ROOT}/.env | sed s/DB_ROOT_PASSWORD=//`
MYSQL_HOST=`egrep DB_HOST ${PROJECT_ROOT}/.env | sed s/DB_HOST=//`

docker compose exec mariadb mysql -u root -p${MYSQL_ROOT_PASS} -h ${MYSQL_HOST} -e "CREATE DATABASE IF NOT EXISTS ${DB_NAME};GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO 'drupal'@'%';"
docker compose exec -T mariadb mysql -u root -p${MYSQL_ROOT_PASS} -h ${MYSQL_HOST} -e "CREATE DATABASE IF NOT EXISTS ${DB_NAME};GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO 'drupal'@'%';"

0 comments on commit bff202f

Please sign in to comment.