exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit e8ce112cd0b2a96a11ff1f8ef171f42352c448fa
parent cfa674d81e77f0f0357b0bebc330ad6ffaf210fd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 22 Dec 2025 17:47:46 +0100

improve logic to detect installed DB version

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

diff --git a/contrib/ci/jobs/002-test/3-startdb.sh b/contrib/ci/jobs/002-test/3-startdb.sh @@ -1,9 +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/17/bin/pg_ctl \ - start -D /etc/postgresql/17/main -o "-h localhost -p $PGPORT" -sudo -u postgres createuser -p $PGPORT root -s -w -sudo -u postgres createdb -p $PGPORT -O root talercheck - +sudo -u postgres "${PG_BIN}/pg_ctl" \ + start \ + -D ${PG_ETC}/main \ + -o "-h localhost -p $PGPORT" +sleep 10 +sudo -u postgres createuser -p "$PGPORT" root -s -w +sudo -u postgres createdb -p "$PGPORT" -O root talercheck