[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sandcastle-ng] branch master updated: define hooks for merchant c
From: |
gnunet |
Subject: |
[taler-sandcastle-ng] branch master updated: define hooks for merchant config |
Date: |
Wed, 04 Dec 2024 23:14:11 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository sandcastle-ng.
The following commit(s) were added to refs/heads/master by this push:
new 25e8dbe define hooks for merchant config
25e8dbe is described below
commit 25e8dbe7864fdaf209163fd2fc6ed5d676853527
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Dec 4 23:14:08 2024 +0100
define hooks for merchant config
---
overrides/head.taler.net | 13 +++++++++++++
scripts/demo/setup-sandcastle.sh | 3 +++
2 files changed, 16 insertions(+)
diff --git a/overrides/head.taler.net b/overrides/head.taler.net
index 3572c91..ef8be26 100644
--- a/overrides/head.taler.net
+++ b/overrides/head.taler.net
@@ -1,4 +1,17 @@
+#!/usr/bin/bash
+
CURRENCY=KUDOS
ALT_UNIT_NAME=ク
MYDOMAIN=head.taler.net
NAME=Kudos
+
+function hook_merchant_config() {
+ # Add the demo exchange to the accepted exchanges
+ cat <<EOF >>/etc/taler-merchant/conf.d/sandcastle-merchant-exchanges.conf
+
+[merchant-exchange-demo]
+EXCHANGE_BASE_URL = https://exchange.demo.taler.net/
+MASTER_KEY = F80MFRG8HVH6R9CQ47KRFQSJP3T6DBJ4K1D9B703RJY3Z39TBMJ0
+CURRENCY = KUDOS
+EOF
+}
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
index 4eca31b..f529433 100755
--- a/scripts/demo/setup-sandcastle.sh
+++ b/scripts/demo/setup-sandcastle.sh
@@ -680,6 +680,9 @@ MASTER_KEY = $MASTER_PUBLIC_KEY
CURRENCY = $CURRENCY
EOF
+# Allow overrides to modify merchant config
+[[ $(type -t hook_merchant_config) == function ]] && hook_merchant_config
+
MERCHANT_BASEURL=$PROTO://$MERCHANT_DOMAIN$PORT_SUFFIX/
systemctl enable --now taler-merchant-httpd
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-sandcastle-ng] branch master updated: define hooks for merchant config,
gnunet <=