taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit c77865d1860795c78e3e689dc20c8a4bae0cb4f0
parent 22843b2b3a61ba31ac2bb74fde23812ec6344215
Author: Florian Dold <florian@dold.me>
Date:   Tue, 14 Mar 2023 12:13:30 +0100

netzbon: currency length check

Diffstat:
Mnetzbon/main.sh | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/netzbon/main.sh b/netzbon/main.sh @@ -21,13 +21,21 @@ source config/internal.conf # Ask questions to user # START USER INTERACTION -echo "TALER: Welcome to the GNU Taler Debian setup!" +say "Welcome to the GNU Taler Debian setup!" +say "" +say "All configuration values asked during the setup script" +say "can be changed in config/user.conf" if test -z "${CURRENCY:-}" then read -p "Enter the name of the currency (e.g. 'EUR'): " CURRENCY # convert to all-caps CURRENCY=`echo ${CURRENCY} | tr a-z A-Z` + # libeufin currenly doesn't like currency names less than 3 letters. + if [[ ${#CURRENCY} -lt 3 || ${#CURRENCY} -gt 11 ]]; then + say "Currency name must be between 3 and 10 letters" + exit 1 + fi echo "CURRENCY=${CURRENCY}" >> config/user.conf fi if test -z "${BANK_NAME:-}"