bin: update

This commit is contained in:
Luc Bijl 2025-08-17 15:01:12 +02:00
parent 0cc125394f
commit a93593061c
5 changed files with 35 additions and 3 deletions

12
bin/load-databases Executable file
View 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