gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: revert previous and fix wget a


From: gnunet
Subject: [taler-deployment] branch master updated: revert previous and fix wget auth
Date: Wed, 02 Nov 2022 08:53:40 +0100

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

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new f0cba5b  revert previous and fix wget auth
f0cba5b is described below

commit f0cba5bead3e0767f3ec51a7947ac6a1e9e2aa25
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 2 08:53:36 2022 +0100

    revert previous and fix wget auth
---
 docker/hybrid/images/merchant/startup.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/docker/hybrid/images/merchant/startup.sh 
b/docker/hybrid/images/merchant/startup.sh
index 7e8bc0c..7b55a94 100644
--- a/docker/hybrid/images/merchant/startup.sh
+++ b/docker/hybrid/images/merchant/startup.sh
@@ -42,7 +42,7 @@ socat TCP-LISTEN:5555,fork,reuseaddr TCP:exchange:80 &
 # to make frontends reach the backend.
 socat TCP-LISTEN:5556,fork,reuseaddr TCP:localhost:80 &
 
-# $2/$3 might have credentials
+# $2 might have Authorization header.
 is_serving () {
 set +u # tolerate missing $2
 echo Checking $1
@@ -52,8 +52,8 @@ for n in `seq 1 50`
     sleep 0.5
     OK=1
     # auth case.
-    if test -n "$2" -a -n "$3"; then
-      wget --user "$2" --password "$3" $1 -o /dev/null -O /dev/null >/dev/null 
&& break
+    if test -n "$2"; then
+      wget --header "$2" $1 -o /dev/null -O /dev/null >/dev/null && break
     else
       wget $1 -o /dev/null -O /dev/null >/dev/null && break
     fi
@@ -124,7 +124,9 @@ is_serving "${SANDBOX_URL}/integration-api/config"
 SURVEY_USERNAME=`taler-config -c /config/deployment.conf -s taler-deployment 
-o survey-sandbox-username`
 SURVEY_PASSWORD=`taler-config -c /config/deployment.conf -s taler-deployment 
-o survey-sandbox-password`
 # Check/wait that the Survey site got its bank account.
-is_serving "${SANDBOX_URL}/access-api/accounts/${SURVEY_USERNAME}" 
$SURVEY_USERNAME $SURVEY_PASSWORD
+curl "${SANDBOX_URL}/access-api/public-accounts"
+is_serving "${SANDBOX_URL}/access-api/accounts/${SURVEY_USERNAME}" \
+  "Authorization: Basic $(echo -n $SURVEY_USERNAME:$SURVEY_PASSWORD | base64)"
 export LIBEUFIN_SANDBOX_USERNAME=${SURVEY_USERNAME}
 export LIBEUFIN_SANDBOX_PASSWORD=${SURVEY_PASSWORD}
 libeufin-cli 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]