12 lines
240 B
Bash
Executable file
12 lines
240 B
Bash
Executable file
#!/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
|