gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: -fix offline setup


From: gnunet
Subject: [taler-deployment] branch master updated: -fix offline setup
Date: Tue, 07 Mar 2023 22:30:55 +0100

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

grothoff pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 3ddd5a6  -fix offline setup
3ddd5a6 is described below

commit 3ddd5a67c0ce513e0b6f71378e0eb57c57df3eea
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Mar 7 22:30:53 2023 +0100

    -fix offline setup
---
 netzbon/setup-exchange.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh
index ce1a214..54795d9 100755
--- a/netzbon/setup-exchange.sh
+++ b/netzbon/setup-exchange.sh
@@ -56,6 +56,11 @@ then
         exit 1
     fi
     say "Setting up offline key"
+    echo -e "[exchange-offline]\n"\
+        "MASTER_PRIV_FILE=\$HOME/${MASTER_PRIV_FILE}\n"\
+        "SECM_TOFU_FILE=\$HOME/${SECMOD_TOFU_FILE}\n"\
+        > /etc/taler/conf.d/offline-setup.conf
+
     MASTER_PUBLIC_KEY=`sudo -i -u taler-exchange-offline 
taler-exchange-offline setup`
     echo "MASTER_PUBLIC_KEY=\"${MASTER_PUBLIC_KEY}\"" >> config/user.conf
     if test -z ${DO_OFFLINE:-}
@@ -108,9 +113,6 @@ echo -e "[taler]\n"\
         "\n[exchange]\n"\
         "MASTER_PUBLIC_KEY=${MASTER_PUBLIC_KEY}\n"\
         "BASE_URL=${EXCHANGE_BASE_URL}\n"\
-        "\n[exchange-offline]\n"\
-        "MASTER_PRIV_FILE=\$HOME/${MASTER_PRIV_FILE}\n"\
-        "SECM_TOFU_FILE=\$HOME/${SECMOD_TOFU_FILE}\n"\
         "\n[merchant-exchange-${DOMAIN_NAME}]\n"\
         "MASTER_KEY=${MASTER_PUBLIC_KEY}\n"\
         "CURRENCY=${CURRENCY}\n"\
@@ -188,10 +190,10 @@ curl --max-time 30 \
      ${EXCHANGE_BASE_URL}management/keys &> /dev/null
 say "DONE"
 
-say "Offline interaction..."
-
 if test ${DO_OFFLINE} == y
 then
+    say "Offline interaction..."
+
     sudo -i -u taler-exchange-offline \
       taler-exchange-offline \
         -c /etc/taler/taler.conf \

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