summaryrefslogtreecommitdiff
path: root/docker/merchant/entry_point.sh
blob: 89df95cdf327691e25d7579460c7e691c7793bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 uri -V $(cat ./exchange_uri.txt | tr -d '\n')
taler-merchant-dbinit -r
taler-merchant-httpd