diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-11-10 21:27:22 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-11-10 21:27:22 +0100 |
commit | 4e296901837b39504bd2e427663e9d45d630a11f (patch) | |
tree | fc0a3e6e7a97be4da252f7694bcdc76979a7c379 /doc | |
parent | 0ab4b9c2378f45e6a8a323e95173f83e04dff617 (diff) |
doc: minor fixes to config walkthough script
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/config.sh | 25 | ||||
-rw-r--r-- | doc/manual.texi | 3 |
2 files changed, 24 insertions, 4 deletions
diff --git a/doc/config.sh b/doc/config.sh index 443cdc9e..db3b26b7 100755 --- a/doc/config.sh +++ b/doc/config.sh @@ -60,11 +60,11 @@ 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> " +echo -ne "taler-config -s merchant-instance-default -o keyfile -V \${TALER_DATA_HOME}/key.priv\n\n\ +(The key will be dynamically generated once the backend starts)<ENTER> " read echo -taler-config -s merchant-instance-default -o keyfile -V ${TALER_DATA_HOME}/key.priv - +taler-config -s merchant-instance-default -o keyfile -V '${TALER_DATA_HOME}/key.priv' echo -n "Setting section [merchant-instance-wireformat-default]<ENTER> " read @@ -73,7 +73,18 @@ 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 +taler-config -s merchant-instance-wireformat-default -o test_response_file -V '${TALER_DATA_HOME}/test.json' + +sleep 1 +echo -ne "Generating test.json..\n\n" +DEST=$(taler-config -s merchant-instance-wireformat-default -o test_response_file -f) +echo '{ + "type": "test", + "bank_uri": "https://bank.test.taler.net/", + "sig": "MERCHANTSIGNATURE", + "account_number": 6, + "salt": "SALT" + }' > $DEST echo -n "Setting section [merchantdb-postgres]<ENTER> " read @@ -97,3 +108,9 @@ echo -n "taler-config -s merchant-demoexchange -o master_key -V CQQZ9DY3MZ1ARMN5 read echo taler-config -s merchant-demoexchange -o master_key -V "CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00" + +echo -ne "Done. Launch the backend with:\n\ +\$ taler-merchant-httpd\n\nTest it with:\n\ +\$ curl http://127.0.0.1:8888/\n\nIf everything worked\ +fine, you should see:\n\n\ +'Hello, I'm a merchant's Taler backend. This HTTP server is not for humans.'\n" diff --git a/doc/manual.texi b/doc/manual.texi index 0f15b541..13bf0b16 100644 --- a/doc/manual.texi +++ b/doc/manual.texi @@ -615,6 +615,9 @@ The backend will deposit the coins it receives to the exchange at @url{https://exchange.demo.taler.net/}, which has the master key @* "CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00". +Please note that @code{doc/config.sh} will walk you through all +configuration steps, showing how to invoke @code{taler-config} +for each of them. @section Launching the backend |