commit 010e4c3363836e02741631ae6ddc223ea5a2cccd
parent 84f629d560914364f55efde171041444982fcdc1
Author: Florian Dold <florian@dold.me>
Date: Tue, 10 Dec 2024 21:50:29 +0100
fix merchant currency config, start whole merchant target
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
@@ -78,6 +78,7 @@ systemctl stop taler-auditor.target
systemctl stop taler-exchange.target
systemctl stop taler-exchange-offline.timer
systemctl stop taler-merchant-httpd.service
+systemctl stop taler-merchant.target
systemctl stop postgresql.service
systemctl stop taler-demo-landing.service
systemctl stop taler-demo-blog.service
@@ -673,6 +674,12 @@ taler-merchant-dbconfig
rm -f /usr/share/taler-exchange/config.d/kudos.conf
rm -f /usr/share/taler-merchant/config.d/kudos.conf
+# We need to define the default currency for the UI.
+cat <<EOF >/etc/taler-merchant/conf.d/sandcastle-merchant.conf
+[merchant]
+CURRENCY = $CURRENCY
+EOF
+
cat <<EOF >/etc/taler-merchant/conf.d/sandcastle-merchant-exchanges.conf
[merchant-exchange-sandcastle]
EXCHANGE_BASE_URL = $PROTO://$EXCHANGE_DOMAIN$PORT_SUFFIX/
@@ -685,7 +692,7 @@ EOF
MERCHANT_BASEURL=$PROTO://$MERCHANT_DOMAIN$PORT_SUFFIX/
-systemctl enable --now taler-merchant-httpd
+systemctl enable --now taler-merchant.target
taler-harness deployment wait-taler-service taler-merchant ${MERCHANT_BASEURL}config
function reset_merchant_pw() {