diff options
author | Florian Dold <florian@dold.me> | 2024-02-05 18:22:25 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-05 18:22:25 +0100 |
commit | a41440e41dc6649670beb9c40e6e5d214df3e803 (patch) | |
tree | d78d7589eff1aa520683c4e7a3923b67932c5474 | |
parent | 2cf7946f662e4d43b3261c6cce4b792179ff32cd (diff) | |
download | libeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.tar.gz libeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.tar.bz2 libeufin-a41440e41dc6649670beb9c40e6e5d214df3e803.zip |
-fix dbnamev0.9.4-dev.13
-rwxr-xr-x | contrib/libeufin-dbconfig | 4 |
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 |