diff options
author | MS <ms@taler.net> | 2023-12-11 19:57:47 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-12-11 19:57:47 +0100 |
commit | 579d93541d44ef63ef036c565d7626c76cd80d8b (patch) | |
tree | efb6cf61bfdfc10a1e861a23e4cf47934f80ff3c /regional-currency/transfer.sh | |
parent | 29918880f335aff089a91b52716e24cea1199c9d (diff) | |
download | deployment-579d93541d44ef63ef036c565d7626c76cd80d8b.tar.gz deployment-579d93541d44ef63ef036c565d7626c76cd80d8b.tar.bz2 deployment-579d93541d44ef63ef036c565d7626c76cd80d8b.zip |
regional setup: rename to address any currency
Diffstat (limited to 'regional-currency/transfer.sh')
-rwxr-xr-x | regional-currency/transfer.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/regional-currency/transfer.sh b/regional-currency/transfer.sh new file mode 100755 index 0000000..d49d445 --- /dev/null +++ b/regional-currency/transfer.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# This file is in the public domain. + +set -eu + +source functions.sh + +if test -z "${3:-}"; then + say "This tool allows you to send funds from the 'admin' account" + say "to a normal user's bank account within the system for testing." + say " " + say "Call with three arguments:" + say "1) target bank account name to credit" + say "2) amount to transfer (e.g. ${CURRENCY:-CURRENCY}:42.42)" + say "3) wire transfer subject to use" + say " " + exit 1 +fi + +# shellcheck disable=SC1091 +source /etc/libeufin/sandbox.env +export LIBEUFIN_SANDBOX_DB_CONNECTION + +libeufin-sandbox make-transaction --credit-account "$1" --debit-account admin "$2" "$3" |