This commit is contained in:
Christian Grothoff 2023-06-05 15:58:03 +02:00
parent 4a86d411de
commit 4355a08769
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -17,7 +17,14 @@
# License along with TALER; see the file COPYING. If not, see # License along with TALER; see the file COPYING. If not, see
# <http://www.gnu.org/licenses/> # <http://www.gnu.org/licenses/>
# #
# Author: Christian Grothoff
#
# This script configures and launches various GNU Taler services.
# Which ones depend on command-line options. Use "-h" to find out.
# Prints "<<READY>>" on a separate line once all requested services
# are running. Close STDIN (or input 'NEWLINE') to stop all started
# services again.
#
set -eu set -eu
# Exit, with status code "skip" (no 'real' failure) # Exit, with status code "skip" (no 'real' failure)
@ -155,6 +162,7 @@ CURRENCY=$(taler-config -c "$CONF" -s "TALER" -o "CURRENCY")
register_sandbox_account() { register_sandbox_account() {
export LIBEUFIN_SANDBOX_USERNAME="$1" export LIBEUFIN_SANDBOX_USERNAME="$1"
export LIBEUFIN_SANDBOX_PASSWORD="$2" export LIBEUFIN_SANDBOX_PASSWORD="$2"
# FIXME-MS: delete should be removed after we make 'register' idempotent!
libeufin-cli sandbox \ libeufin-cli sandbox \
demobank \ demobank \
delete \ delete \
@ -239,11 +247,13 @@ then
export LIBEUFIN_SANDBOX_USERNAME="admin" export LIBEUFIN_SANDBOX_USERNAME="admin"
export LIBEUFIN_SANDBOX_PASSWORD="secret" export LIBEUFIN_SANDBOX_PASSWORD="secret"
echo -n "Create EBICS host at Sandbox.." echo -n "Create EBICS host at Sandbox.."
# FIXME-MS: || true should be removed after we make 'create' idempotent!
libeufin-cli sandbox \ libeufin-cli sandbox \
--sandbox-url "$LIBEUFIN_SANDBOX_URL" \ --sandbox-url "$LIBEUFIN_SANDBOX_URL" \
ebicshost create --host-id talerebics &> libeufin-sandbox-ebicshost-create.log || true ebicshost create --host-id talerebics &> libeufin-sandbox-ebicshost-create.log || true
echo "OK" echo "OK"
echo -n "Create exchange EBICS subscriber at Sandbox.." echo -n "Create exchange EBICS subscriber at Sandbox.."
# FIXME-MS: || true should be removed after we make 'new-ebicssubscriber' idempotent!
libeufin-cli sandbox \ libeufin-cli sandbox \
demobank new-ebicssubscriber --host-id talerebics \ demobank new-ebicssubscriber --host-id talerebics \
--user-id exchangeebics --partner-id talerpartner \ --user-id exchangeebics --partner-id talerpartner \
@ -347,7 +357,7 @@ fi
if [ "1" = "$START_FAKEBANK" ] if [ "1" = "$START_FAKEBANK" ]
then then
echo "Setting up fakebank ..." echo "Setting up fakebank ..."
taler-fakebank-run -c "$CONF" -L "$LOGLEVEL" 2> taler-fakebank-run.log & $USE_VALGRIND taler-fakebank-run -c "$CONF" -L "$LOGLEVEL" 2> taler-fakebank-run.log &
fi fi