bin: update
This commit is contained in:
parent
0cc125394f
commit
a93593061c
5 changed files with 35 additions and 3 deletions
12
bin/load-databases
Executable file
12
bin/load-databases
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
command="/usr/bin/podman"
|
||||
|
||||
# Loads dumped databases
|
||||
|
||||
postgres_databases=""
|
||||
|
||||
for database in $postgres_databases
|
||||
do
|
||||
$command exec -it ${database}-pod-postgres sh -c "gunzip -c /dump/${database}.sql.gz | psql -U postgres"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue