commit 2900ab44fae03cd538cd1c40b2d23eafc067823a parent 5b232b727e13e650d1fc5363b640666aaa0cdeaf Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Thu, 10 Nov 2016 18:10:42 +0100 doc: stub for config script Diffstat:
| M | .gitignore | | | 1 | + |
| A | doc/config.sh | | | 86 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 87 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -33,3 +33,4 @@ taler_merchant_config.h.in doc/* !doc/*.texi !doc/*.am +!doc/*.sh diff --git a/doc/config.sh 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!