taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 550dbfae973c21271cdc6b71a55f6f6c6d382424
parent 20882ad812c93faff8a9352a031e982b7e593a7e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  5 Mar 2023 00:29:09 +0100

work around broken taler-harness logic

Diffstat:
Mnetzbon/setup-exchange.sh | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh @@ -129,7 +129,13 @@ taler-harness deployment gen-coin-config \ --min-amount ${CURRENCY}:0.01 \ --max-amount ${CURRENCY}:100 \ | sed -e "s/FEE_DEPOSIT = ${CURRENCY}:0.01/FEE_DEPOSIT = ${CURRENCY}:0/" \ - > /etc/taler/conf.d/${CURRENCY}-coins.conf + > /etc/taler/conf.d/${CURRENCY}-coins.conf + +# FIXME-DOLD: this belongs with taler-harness +for SEC in `taler-config -c /etc/taler/conf.d/${CURRENCY}-coins.conf -S | grep COIN-` +do + taler-config -c /etc/taler/conf.d/${CURRENCY}-coins.conf -s $SEC -o CIPHER -V "RSA" +done say "Initializing exchange database" sudo -u taler-exchange-httpd taler-exchange-dbinit -c /etc/taler/taler.conf @@ -146,6 +152,13 @@ curl --max-time 2 \ ${EXCHANGE_BASE_URL}config &> /dev/null echo "DONE" +echo -n "Waiting for exchange keys (this may take a while)..." +curl --max-time 30 \ + --retry-delay 1 \ + --retry 60 \ + ${EXCHANGE_BASE_URL}management/keys &> /dev/null +echo "DONE" + say "Offline interaction..." taler-exchange-offline \