[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 93/189: possibility to create multiple instances
From: |
gnunet |
Subject: |
[taler-grid5k] 93/189: possibility to create multiple instances |
Date: |
Thu, 28 Apr 2022 10:47:43 +0200 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit ca86c8a5db9e67ef002d4fb548ff925346a0d912
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Thu Mar 17 23:02:45 2022 +0100
possibility to create multiple instances
---
experiment/scripts/merchant.sh | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/experiment/scripts/merchant.sh b/experiment/scripts/merchant.sh
index 7c445fa..58e9db6 100755
--- a/experiment/scripts/merchant.sh
+++ b/experiment/scripts/merchant.sh
@@ -61,14 +61,16 @@ EOF
sudo -u taler-merchant-httpd taler-merchant-dbinit
}
+# Create a new merchant instance
+# $1: Instance name
function create_instance() {
curl -X POST \
-H "Authorization: Bearer ${TALER_MERCHANT_TOKEN}" \
-H "Content-Type: application/json" \
-d "{
- \"payto_uris\": [
\"payto://x-taler-bank/${BANK_DOMAIN}/${NODE_NAME}\" ],
- \"id\": \"default\",
- \"name\": \"${NODE_NAME}\",
+ \"payto_uris\": [ \"payto://x-taler-bank/${BANK_DOMAIN}/${1}\" ],
+ \"id\": \"${1}\",
+ \"name\": \"${1}\",
\"address\": {\"country\": \"CH\"},
\"auth\": {\"method\": \"token\", \"token\":
\"${TALER_MERCHANT_TOKEN}\",
\"jurisdiction\": {\"country\": \"CH\"},
@@ -88,7 +90,8 @@ function init_merchant() {
configure_db
init_db
systemctl restart taler-merchant-httpd
- create_instance
+ # create_instance "default"
+ create_instance ${NODE_NAME}
}
case $1 in
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 99/189: add explain analyzer, (continued)
- [taler-grid5k] 99/189: add explain analyzer, gnunet, 2022/04/28
- [taler-grid5k] 88/189: fix build, gnunet, 2022/04/28
- [taler-grid5k] 95/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 109/189: update promtail message size, gnunet, 2022/04/28
- [taler-grid5k] 117/189: some db config, gnunet, 2022/04/28
- [taler-grid5k] 64/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 96/189: fixes, add lookahead sign as param, gnunet, 2022/04/28
- [taler-grid5k] 70/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 120/189: update postgres exporter to work when there is no merchant, update grafana dashboards, gnunet, 2022/04/28
- [taler-grid5k] 74/189: reduce amount of logging wallets, gnunet, 2022/04/28
- [taler-grid5k] 93/189: possibility to create multiple instances,
gnunet <=
- [taler-grid5k] 92/189: configure merchant instance, gnunet, 2022/04/28
- [taler-grid5k] 97/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 114/189: test with sharding, gnunet, 2022/04/28
- [taler-grid5k] 111/189: explain analyze now working with correct postgres config, gnunet, 2022/04/28
- [taler-grid5k] 98/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 102/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 130/189: fix slow query amount, gnunet, 2022/04/28
- [taler-grid5k] 158/189: additional scripts improved, gnunet, 2022/04/28
- [taler-grid5k] 133/189: cleaner regex, gnunet, 2022/04/28
- [taler-grid5k] 156/189: fix, gnunet, 2022/04/28