grepfood-demo/server/run-init-mockup.sh

13 lines
273 B
Bash
Raw Normal View History

2024-10-16 14:05:47 +00:00
#!/bin/bash
function run_query() {
docker container exec postgres psql -U user -d grepfood --command="$1"
}
function run_file() {
docker container exec postgres psql -U user -d grepfood -f "$1"
}
run_file "/var/mockup/tables.sql"
run_file "/var/mockup/data.sql"