db agnostic

This commit is contained in:
2024-05-06 21:43:48 +02:00
parent de97e4520c
commit a323e5f2a1
15 changed files with 351 additions and 319 deletions

10
init-postgres.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -o nounset
if [[ ! -e "./pgdata" ]] ; then
initdb --locale=C.UTF-8 --encoding=UTF8 -D './pgdata' --user postgres
mkdir ./pgdata/run
fi
postgres -D ./pgdata -k run -h ""