diff --git a/templates/mariadb/mysql.erb.sh b/templates/mariadb/mysql.erb.sh index f2bc16f..b62d38d 100644 --- a/templates/mariadb/mysql.erb.sh +++ b/templates/mariadb/mysql.erb.sh @@ -1,4 +1,4 @@ #!/bin/bash pw=$(yq -r '.services.db.environment[0]' /opt/mariadb/docker-compose.yml | awk -F '=' '{print $2}') -docker exec -ti mariadb_db_1 mysql -u root -p"${pw}" "${@}" +docker exec -ti mariadb_db_1 mysql -u root -p"${pw}" -e "${@}"