summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2022-09-28 11:08:50 +0200
committerMS <ms@taler.net>2022-09-28 11:08:50 +0200
commit2fd32f23c77af0a811b00476832e830963ff95d7 (patch)
tree25436e79bcad1b1a7087ba7bf78bf6e35ebe3982
parent697e9cc5c3bd0d5450788aee375445da84e3343c (diff)
downloaddeployment-2fd32f23c77af0a811b00476832e830963ff95d7.tar.gz
deployment-2fd32f23c77af0a811b00476832e830963ff95d7.tar.bz2
deployment-2fd32f23c77af0a811b00476832e830963ff95d7.zip
create default instance
-rw-r--r--docker/hybrid/images/merchant/startup.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/docker/hybrid/images/merchant/startup.sh b/docker/hybrid/images/merchant/startup.sh
index eade50f..4303e78 100644
--- a/docker/hybrid/images/merchant/startup.sh
+++ b/docker/hybrid/images/merchant/startup.sh
@@ -28,5 +28,13 @@ echo Found Exchange Pub: $EXCHANGE_MASTER_PUB
sed -i 's/\${EXCHANGE_URL}/http:\/\/exchange\//' /config/taler.conf
sed -i "s/\${EXCHANGE_PUB}/${EXCHANGE_MASTER_PUB}/" /config/taler.conf
sed -i 's/\${CURRENCY}/EUR/' /config/taler.conf
+# FRONTENDS_APIKEY=secret-token:secret, later..
+
taler-merchant-dbinit -c /config/taler.conf --reset
-taler-merchant-httpd -c /config/taler.conf
+taler-merchant-httpd -c /config/taler.conf &
+sleep 1
+
+curl -s -H "Content-Type: application/json" -X POST -d '{"auth":{"method":"external"},"payto_uris":["payto://iban/SANDBOXX/DE474361?receiver-name=Merchant43"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"EUR:1", "default_max_deposit_fee":"EUR:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 3600000000},"default_pay_delay":{"d_us": 3600000000}}' http://merchant/management/instances
+
+echo Default instance created.
+wait