gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: support challenger on UNIX domai


From: gnunet
Subject: [taler-exchange] branch master updated: support challenger on UNIX domain socket in taler-unified-setup
Date: Thu, 02 Nov 2023 15:42:26 +0100

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 bda3fce3 support challenger on UNIX domain socket in 
taler-unified-setup
bda3fce3 is described below

commit bda3fce366b65a2293ffccc5151a5e496917417e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Nov 2 15:42:22 2023 +0100

    support challenger on UNIX domain socket in taler-unified-setup
---
 src/testing/taler-unified-setup.sh | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/testing/taler-unified-setup.sh 
b/src/testing/taler-unified-setup.sh
index 9017f872..5b4bf89b 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -490,7 +490,13 @@ if [ "1" = "$START_BACKUP" ]
 then
     echo -n "Starting sync ..."
     SYNC_PORT=$(taler-config -c "$CONF" -s SYNC -o PORT)
-    SYNC_URL="http://localhost:${SYNC_PORT}/";
+    SERVE=$(taler-config -c "$CONF" -s SYNC -o SERVE)
+    if [ "${SERVE}" = "unix" ]
+    then
+        SYNC_URL=$(taler-config -c "$CONF" -s SYNC -o BASE_URL)
+    else
+        SYNC_URL="http://localhost:${SYNC_PORT}/";
+    fi
     sync-dbinit -c "$CONF" --reset
     $USE_VALGRIND sync-httpd -c "$CONF" -L "$LOGLEVEL" 2> sync-httpd.log &
     echo " DONE"
@@ -500,7 +506,13 @@ if [ "1" = "$START_CHALLENGER" ]
 then
     echo -n "Starting challenger ..."
     CHALLENGER_PORT=$(challenger-config -c "$CONF" -s CHALLENGER -o PORT)
-    CHALLENGER_URL="http://localhost:${CHALLENGER_PORT}/";
+    SERVE=$(taler-config -c "$CONF" -s CHALLENGER -o SERVE)
+    if [ "${SERVE}" = "unix" ]
+    then
+        CHALLENGER_URL=$(taler-config -c "$CHALLENGER" -s SYNC -o BASE_URL)
+    else
+        CHALLENGER_URL="http://localhost:${CHALLENGER_PORT}/";
+    fi
     challenger-dbinit -c "$CONF" --reset
     $USE_VALGRIND challenger-httpd -c "$CONF" -L "$LOGLEVEL" 2> 
challenger-httpd.log &
     echo " DONE"
@@ -533,6 +545,7 @@ echo -n "Waiting for Taler services ..."
 E_DONE=0
 M_DONE=0
 S_DONE=0
+K_DONE=0
 A_DONE=0
 for n in $(seq 1 20)
 do
@@ -571,16 +584,16 @@ do
             -O /dev/null >/dev/null || continue
         S_DONE=1
     fi
-    if [ "0" = "$S_DONE" ] && [ "1" = "$START_CHALLENGER" ]
+    if [ "0" = "$K_DONE" ] && [ "1" = "$START_CHALLENGER" ]
     then
-        echo -n "S"
+        echo -n "K"
         wget \
             --tries=1 \
             --timeout=1 \
             "${CHALLENGER_URL}config" \
             -o /dev/null \
             -O /dev/null >/dev/null || continue
-        S_DONE=1
+        K_DONE=1
     fi
     if [ "0" = "$A_DONE" ] && [ "1" = "$START_AUDITOR" ]
     then

-- 
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]