summaryrefslogtreecommitdiff
path: root/historic/docker/merchant/entry_point.sh
diff options
context:
space:
mode:
Diffstat (limited to 'historic/docker/merchant/entry_point.sh')
-rwxr-xr-xhistoric/docker/merchant/entry_point.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/historic/docker/merchant/entry_point.sh b/historic/docker/merchant/entry_point.sh
new file mode 100755
index 0000000..515c318
--- /dev/null
+++ b/historic/docker/merchant/entry_point.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+
+(su -c "createuser --host=dbcontainer root" - postgres | exit 0)
+(su -c "createdb --host=dbcontainer talertest" - postgres | exit 0)
+taler-config -s merchantdb-postgres -o config \
+ -V "dbname=talertest host=dbcontainer"
+taler-config -s merchant -o serve -V tcp
+taler-config -s merchant -o port -V 9966
+taler-config -s merchant-exchange-test -o master_key -V $(cat /exchange_pub.txt|tr -d '\n')
+taler-config -s merchant-exchange-test -o url -V $(cat /exchange_url.txt | tr -d '\n')
+taler-merchant-dbinit -r
+taler-merchant-httpd