summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-10 18:10:42 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-10 18:10:42 +0100
commit2900ab44fae03cd538cd1c40b2d23eafc067823a (patch)
tree33be8f614ada9d299dbb67b3f75c47b74c4bbc30 /doc
parent5b232b727e13e650d1fc5363b640666aaa0cdeaf (diff)
downloadmerchant-2900ab44fae03cd538cd1c40b2d23eafc067823a.tar.gz
merchant-2900ab44fae03cd538cd1c40b2d23eafc067823a.tar.bz2
merchant-2900ab44fae03cd538cd1c40b2d23eafc067823a.zip
doc: stub for config script
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/config.sh86
1 files changed, 86 insertions, 0 deletions
diff --git a/doc/config.sh b/doc/config.sh
new file mode 100755
index 00000000..2474528c
--- /dev/null
+++ b/doc/config.sh
@@ -0,0 +1,86 @@
+#!/bin/bash
+
+echo -e "\nThis script will set and show all the configuration\n\
+values needed to run an example backend. The backend will listen on port 8888\n\
+and cooperate with exchange at https://exchange.demo.taler.net/.\n\
+Additionally, the script will also generate the backend's private\n\
+key and banking details' file.\n\n"
+
+echo -n "Press ENTER to start > "
+read
+echo
+
+echo -n "Setting section [merchant]<ENTER> "
+read
+echo
+
+echo -n "taler-config -s merchant -o serve -V TCP<ENTER> "
+read
+echo
+taler-config -s merchant -o serve -V TCP
+
+echo -n "taler-config -s merchant -o port -V 8888<ENTER> "
+read
+echo
+taler-config -s merchant -o port -V 8888
+
+echo -n "taler-config -s merchant -o database -V postgres<ENTER> "
+read
+echo
+taler-config -s merchant -o database -V postgres
+
+echo -n "taler-config -s merchant -o currency -V KUDOS<ENTER> "
+read
+echo
+taler-config -s merchant -o currency -V KUDOS
+
+echo -n "taler-config -s merchant -o wireformat -V TEST<ENTER> "
+read
+echo
+taler-config -s merchant -o wireformat -V TEST
+
+echo -n "Setting section [merchant-instance-default]<ENTER> "
+read
+echo
+
+echo -n "taler-config -s merchant-instance-default -o keyfile -V \${TALER_DATA_HOME}/key.priv<ENTER> "
+read
+echo
+taler-config -s merchant-instance-default -o keyfile -V ${TALER_DATA_HOME}/key.priv
+
+
+echo -n "Setting section [merchant-instance-wireformat-default]<ENTER> "
+read
+echo
+
+echo -n "taler-config -s merchant-instance-wireformat-default -o test_response_file -V \${TALER_DATA_HOME}/test.json<ENTER> "
+read
+echo
+taler-config -s merchant-instance-wireformat-default -o test_response_file -V ${TALER_DATA_HOME}/test.json
+
+echo -n "Setting section [merchantdb-postgres]<ENTER> "
+read
+echo
+
+echo -n "taler-config -s merchantdb-postgres -o config -V postgres:///donations<ENTER> "
+read
+echo
+taler-config -s merchantdb-postgres -o config -V "postgres:///donations"
+
+echo -n "Setting section [merchant-demoexchange]<ENTER> "
+read
+echo
+
+echo -n "taler-config -s merchant-demoexchange -o uri -V https://exchange.demo.taler.net/<ENTER> "
+read
+echo
+taler-config -s merchant-demoexchange -o uri -V "https://exchange.demo.taler.net/"
+
+echo -n "taler-config -s merchant-demoexchange -o master_key -V CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00<ENTER> "
+read
+echo
+taler-config -s merchant-demoexchange -o master_key -V "CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00"
+
+# FIXME:
+# 1) put banking details generator
+# 2) test!