aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-05 18:22:25 +0100
committerFlorian Dold <florian@dold.me>2024-02-05 18:22:25 +0100
commita41440e41dc6649670beb9c40e6e5d214df3e803 (patch)
treed78d7589eff1aa520683c4e7a3923b67932c5474
parent2cf7946f662e4d43b3261c6cce4b792179ff32cd (diff)
downloadlibeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.tar.gz
libeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.tar.bz2
libeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.zip
-fix dbnamev0.9.4-dev.13
-rwxr-xr-xcontrib/libeufin-dbconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libeufin-dbconfig b/contrib/libeufin-dbconfig
index d2f98757..1ed0e132 100755
--- 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