[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: use appropriate credentials op
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: use appropriate credentials options |
Date: |
Tue, 01 Nov 2022 20:42:06 +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 33e0f17 use appropriate credentials options
33e0f17 is described below
commit 33e0f1791d1b5047e9c07222be6486441aca9def
Author: MS <ms@taler.net>
AuthorDate: Tue Nov 1 20:42:00 2022 +0100
use appropriate credentials options
---
docker/hybrid/images/merchant/startup.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/docker/hybrid/images/merchant/startup.sh
b/docker/hybrid/images/merchant/startup.sh
index 9d74d50..8732891 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 might have Authorization header.
+# $2/$3 might have credentials
is_serving () {
set +u # tolerate missing $2
echo Checking $1
@@ -52,7 +52,7 @@ for n in `seq 1 50`
sleep 0.5
OK=1
# auth case.
- if test -n "$2"; then
+ if test -n "$2" -a -n "$3"; 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
@@ -124,8 +124,7 @@ 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}" \
- "Authorization: Basic $(echo $SURVEY_USERNAME:$SURVEY_PASSWORD | base64)"
+is_serving "${SANDBOX_URL}/access-api/accounts/${SURVEY_USERNAME}"
$SURVEY_USERNAME $SURVEY_PASSWORD
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.
- [taler-deployment] branch master updated: use appropriate credentials options,
gnunet <=