commit a41440e41dc6649670beb9c40e6e5d214df3e803 parent 2cf7946f662e4d43b3261c6cce4b792179ff32cd Author: Florian Dold <florian@dold.me> Date: Mon, 5 Feb 2024 18:22:25 +0100 -fix dbname Diffstat:
| M | contrib/libeufin-dbconfig | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/libeufin-dbconfig b/contrib/libeufin-dbconfig @@ -114,7 +114,7 @@ if ! echo "$NEXUS_DBPATH" | grep "postgres://" >/dev/null; then fi # Remove URI, host and query from postgres URI. -NEXUS_DBNAME=$(echo "$NEXUS_DBPATH" | sed -e 's|postgres://.*||' -e 's|?.*||') +NEXUS_DBNAME=$(echo "$NEXUS_DBPATH" | sed -e 's|postgres://.*/||' -e 's|?.*||') BANK_DBPATH=$(libeufin-bank config get libeufin-bankdb-postgres CONFIG) @@ -124,7 +124,7 @@ if ! echo "$BANK_DBPATH" | grep "postgres://" >/dev/null; then fi # Remove URI, host and query from postgres URI. -BANK_DBNAME=$(echo "$BANK_DBPATH" | sed -e 's|postgres://.*||' -e 's|?.*||') +BANK_DBNAME=$(echo "$BANK_DBPATH" | sed -e 's|postgres://.*/||' -e 's|?.*||') if [[ $NEXUS_DBNAME != "$BANK_DBNAME" ]]; then echo "Database names for libeufin-bank and libeufin-nexus must match ($NEXUS_DBNAME vs $BANK_DBNAME)" 1>&2