[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: allow global auth spec
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: allow global auth spec |
Date: |
Sat, 13 Jan 2024 21:23:35 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 1f46dda allow global auth spec
1f46dda is described below
commit 1f46dda63333edf16b2c0dfc9f3b4cce30f2c7a9
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jan 13 21:23:30 2024 +0100
allow global auth spec
---
contrib/taler-mdb-network-check.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/taler-mdb-network-check.sh
b/contrib/taler-mdb-network-check.sh
index 5426f88..ee6e842 100755
--- a/contrib/taler-mdb-network-check.sh
+++ b/contrib/taler-mdb-network-check.sh
@@ -112,6 +112,7 @@ function check_network()
{
DEF_BACKEND=$(taler-config -c "$CONF" -s "taler-mdb" -o "BACKEND_BASE_URL")
BACKEND_HOSTNAME=$(echo "$DEF_BACKEND" | awk -F/ '{print $3}')
+ BACKEND_AUTH=$(taler-config -c "$CONF" -s "taler-mdb" -o
"BACKEND_AUTHORIZATION")
DNS_HOST=$(grep nameserver /etc/resolv.conf | grep -v '^#' | head -n1 |
awk '{print $2}')
if ! ping -c1 "$DNS_HOST" &> /dev/null
@@ -149,7 +150,7 @@ function check_network()
for PS in $(taler-config -c "$CONF" -S | grep "product-" | head -n1)
do
URL=$(taler-config -c "$CONF" -s "$PS" -o "INSTANCE" 2> /dev/null ||
echo "$DEF_BACKEND")
- AUTH=$(taler-config -c "$CONF" -s "$PS" -o "BACKEND_AUTHORIZATION")
+ AUTH=$(taler-config -c "$CONF" -s "$PS" -o "BACKEND_AUTHORIZATION" 2>
/dev/null || echo "$BACKEND_AUTH")
if ! wget --header "Authorization: $AUTH" "${URL}private/orders" -O
/dev/null &> /dev/null
then
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: allow global auth spec,
gnunet <=