Updated repository to the new configuration.

This commit is contained in:
Luc Bijl 2024-08-30 21:26:24 +02:00
parent 25dde6a119
commit 1945f193ea
31 changed files with 766 additions and 866 deletions

23
bin/load Normal file
View file

@ -0,0 +1,23 @@
#!/bin/sh
command="/usr/bin/podman"
# Loads dumped databases
postgres_databases="gitea"
for database in $postgres_databases
do
exec $command exec -it ${database}-pod-postgres sh -c "gunzip -c /dump/${database}.sql.gz | psql -U postgres"
done
# Imports volumes
volumes="gitea-pod-gitea-data"
for volume in $volumes
do
exec $command volume import $volume <home>/.volumes/${volume}.tar
done