commit 18e65dc062e28b5b0f26a5190f449b38a8a953cf parent d6e92e4ef090bee0fc12faf288764e40960ca7a2 Author: Florian Dold <florian@dold.me> Date: Wed, 11 Dec 2024 14:10:50 +0100 towards re-enabling auditor Diffstat:
| M | scripts/demo/setup-sandcastle.sh | | | 24 | ++++++++++++++++++++++-- |
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh @@ -632,6 +632,10 @@ sudo -i -u taler-exchange-offline \ systemctl enable --now taler-exchange-offline.timer +function dup_exchange_opt() { + echo "$2 = $(taler-exchange-config -c /etc/taler-exchange/taler-exchange.conf -s $1 -o $2)" +} + # # Set up exchange auditor # @@ -647,12 +651,28 @@ if [[ $ENABLE_AUDITOR = 1 ]]; then cat <<EOF >/etc/taler-auditor/conf.d/sandcastle-auditor.conf [auditor] PUBLIC_KEY = $AUDITOR_PUB + +[exchangedb] + +$(dup_exchange_opt exchangedb IDLE_RESERVE_EXPIRATION_TIME) +$(dup_exchange_opt exchangedb LEGAL_RESERVE_EXPIRATION_TIME) +$(dup_exchange_opt exchangedb AGGREGATOR_SHIFT) +$(dup_exchange_opt exchangedb DEFAULT_PURSE_LIMIT) + +[exchangedb-postgres] +$(dup_exchange_opt exchangedb-postgres CONFIG) + +[exchange] +$(dup_exchange_opt exchange CURRENCY) +$(dup_exchange_opt exchange CURRENCY_ROUND_UNIT) +$(dup_exchange_opt exchange DB) + + EOF taler-auditor-dbconfig systemctl enable --now taler-auditor.target - # FIXME: also enable auditor helpers! fi # Set up merchant backend @@ -764,7 +784,7 @@ taler-harness deployment provision-merchant-instance \ --id sandbox \ --payto "payto://iban/$MERCHANT_IBAN_SANDBOX?receiver-name=Sandbox+Merchant" -mkdir /etc/taler +mkdir -p /etc/taler # Now we set up the taler-merchant-demos