Add mysql command to host
This commit is contained in:
parent
a2ee732d5d
commit
2f47e6e109
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pw=$(yq -r '.services.db.environment[0]' /opt/mariadb/docker-compose.yml | awk -F '=' '{print $2}')
|
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 "${@}"
|
||||||
|
|
Loading…
Reference in a new issue