diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-03-05 00:29:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-03-05 00:29:09 +0100 |
commit | 550dbfae973c21271cdc6b71a55f6f6c6d382424 (patch) | |
tree | b9619535588f0ac54c3c15a08c4b17386ef0a1ba | |
parent | 20882ad812c93faff8a9352a031e982b7e593a7e (diff) | |
download | deployment-550dbfae973c21271cdc6b71a55f6f6c6d382424.tar.gz deployment-550dbfae973c21271cdc6b71a55f6f6c6d382424.tar.bz2 deployment-550dbfae973c21271cdc6b71a55f6f6c6d382424.zip |
work around broken taler-harness logic
-rwxr-xr-x | netzbon/setup-exchange.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh index acee51b..cecefb9 100755 --- 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 \ |