gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: tolerate unset


From: gnunet
Subject: [taler-exchange] branch master updated: tolerate unset
Date: Sun, 23 Jul 2023 14:52:26 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 77e06dda tolerate unset
77e06dda is described below

commit 77e06dda9179e6b26184824414195a64c88f3d23
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jul 23 14:52:23 2023 +0200

    tolerate unset
---
 src/testing/taler-unified-setup.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/testing/taler-unified-setup.sh 
b/src/testing/taler-unified-setup.sh
index 09999aef..48e164c2 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -254,6 +254,7 @@ then
     # Create the default demobank.
     echo -n "Configuring sandbox at ${LIBEUFIN_SANDBOX_DB_CONNECTION} "
 
+    libeufin-sandbox reset-tables
     libeufin-sandbox config \
                      --currency "$CURRENCY" \
                      --users-debt-limit 99999999 \
@@ -344,13 +345,14 @@ then
     # to the exchange.
     LIBEUFIN_NEXUS_DB_CONNECTION=$(taler-config -c "$CONF" -s "libeufin-nexus" 
-o "DB_CONNECTION")
 
-    if [ ! -z "$PGHOST" ]
+    if [ ! -z "${PGHOST:+}" ]
     then
         EHOST=$(echo $PGHOST | sed -e "s/\//\\\\\//g")
         LIBEUFIN_NEXUS_DB_CONNECTION=$(echo $LIBEUFIN_NEXUS_DB_CONNECTION | 
sed -e "s/\/var\/run\/postgresql/$EHOST/")
         taler-config -c "$CONF" -s "libeufin-nexus" -o "DB_CONNECTION" -V 
"$LIBEUFIN_NEXUS_DB_CONNECTION"
     fi
     export LIBEUFIN_NEXUS_DB_CONNECTION
+    libeufin-nexus reset-tables
 
     # For convenience, username and password are
     # identical to those used at the Sandbox.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]