aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/generate-auditor-basedb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/generate-auditor-basedb.sh')
-rwxr-xr-xsrc/auditor/generate-auditor-basedb.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/auditor/generate-auditor-basedb.sh b/src/auditor/generate-auditor-basedb.sh
index 0fe205707..9cf1e3963 100755
--- a/src/auditor/generate-auditor-basedb.sh
+++ b/src/auditor/generate-auditor-basedb.sh
@@ -66,7 +66,7 @@ MERCHANT_PORT=`taler-config -c $CONF -s MERCHANT -o PORT`
66MERCHANT_URL=http://localhost:${MERCHANT_PORT}/ 66MERCHANT_URL=http://localhost:${MERCHANT_PORT}/
67BANK_PORT=`taler-config -c $CONF -s BANK -o HTTP_PORT` 67BANK_PORT=`taler-config -c $CONF -s BANK -o HTTP_PORT`
68BANK_URL=http://localhost:${BANK_PORT}/ 68BANK_URL=http://localhost:${BANK_PORT}/
69AUDITOR_URL=http://localhost:8888/ 69AUDITOR_URL=http://localhost:8083/
70 70
71# patch configuration 71# patch configuration
72taler-config -c $CONF -s EXCHANGE -o MASTER_PUBLIC_KEY -V $MASTER_PUB 72taler-config -c $CONF -s EXCHANGE -o MASTER_PUBLIC_KEY -V $MASTER_PUB
@@ -87,12 +87,18 @@ echo "Setting up auditor"
87taler-auditor-dbinit -r -c $CONF 87taler-auditor-dbinit -r -c $CONF
88taler-auditor-exchange -c $CONF -m $MASTER_PUB -u $EXCHANGE_URL 88taler-auditor-exchange -c $CONF -m $MASTER_PUB -u $EXCHANGE_URL
89taler-auditor-sign -c $CONF -u $AUDITOR_URL -r e2a.dat -o a2e.dat -m $MASTER_PUB 89taler-auditor-sign -c $CONF -u $AUDITOR_URL -r e2a.dat -o a2e.dat -m $MASTER_PUB
90rm -f e2a.dat
91
92# provide auditor's signature to exchange
93ABD=`taler-config -c $CONF -s EXCHANGEDB -o AUDITOR_BASE_DIR -f`
94mkdir -p $ABD
95mv a2e.dat $ABD
90 96
91# Launch services 97# Launch services
92echo "Launching services" 98echo "Launching services"
93taler-bank-manage -c $CONF serve-http & 99taler-bank-manage -c $CONF serve-http &
94taler-exchange-httpd -c $CONF 2> taler-exchange-httpd.log & 100taler-exchange-httpd -c $CONF 2> taler-exchange-httpd.log &
95taler-merchant-httpd -c $CONF 2> taler-merchant-httpd.log & 101taler-merchant-httpd -c $CONF -L INFO 2> taler-merchant-httpd.log &
96taler-exchange-wirewatch -c $CONF 2> taler-exchange-wirewatch.log & 102taler-exchange-wirewatch -c $CONF 2> taler-exchange-wirewatch.log &
97taler-auditor-httpd -c $CONF 2> taler-auditor-httpd.log & 103taler-auditor-httpd -c $CONF 2> taler-auditor-httpd.log &
98 104
@@ -140,7 +146,7 @@ cp $WIRE_FEE_DIR/x-taler-bank.fee ${BASEDB}.fees
140# clean up 146# clean up
141echo "Final clean up" 147echo "Final clean up"
142dropdb $TARGET_DB 148dropdb $TARGET_DB
143rm -f e2a.dat a2e.dat 149
144rm -rf $DATA_DIR || true 150rm -rf $DATA_DIR || true
145rm $CONF 151rm $CONF
146 152