sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 09da128db7b85eee64565b339ee870cc8363f1da
parent 08f69b5e7eecbe6dc0cec9e16808fd8603dbcf11
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 22 Dec 2025 17:48:13 +0100

improve logic to detect installed DB version

Diffstat:
Mcontrib/ci/jobs/2-test/3-startdb.sh | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/contrib/ci/jobs/2-test/3-startdb.sh b/contrib/ci/jobs/2-test/3-startdb.sh @@ -1,7 +1,13 @@ #!/bin/bash set -evux +PG_BIN="$(pg_config --bindir)" +PG_ETC="$(pg_config --sharedir | sed 's|/share/postgresql|/etc/postgresql|") +export PGPORT=5432 -sudo -u postgres /usr/lib/postgresql/15/bin/postgres -D /etc/postgresql/15/main -h localhost -p 5432 & +sudo -u postgres "${PG_BIN}/pg_ctl" \ + start \ + -D ${PG_ETC}/main \ + -o "-h localhost -p $PGPORT" sleep 10 -sudo -u postgres createuser -p 5432 root -sudo -u postgres createdb -p 5432 -O root synccheck +sudo -u postgres createuser -p "$PGPORT" root +sudo -u postgres createdb -p "$PGPORT" -O root synccheck