commit ad84a2f64f53bcac3b64185165ac15d4eb9993f4
parent dbe61853550a2ff07122fa0d022b1bb9fd8e4bb7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 5 Mar 2023 13:00:19 +0100
sanitize
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/netzbon/main.sh b/netzbon/main.sh
@@ -26,12 +26,14 @@ echo "TALER: Welcome to the GNU Taler Debian setup!"
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`
echo "CURRENCY=${CURRENCY}" >> config/user.conf
fi
if test -z "${BANK_NAME:-}"
then
read -p "Enter the human-readable name of the bank (e.g. 'Taler Bank'): " BANK_NAME
- echo "BANK_NAME=${BANK_NAME}" >> config/user.conf
+ echo "BANK_NAME=\"${BANK_NAME}\"" >> config/user.conf
fi
if test -z "${ENABLE_TLS:-}"
then
@@ -59,6 +61,8 @@ fi
if test -z "${DOMAIN_NAME:-}"
then
read -p "Enter the domain name: " DOMAIN_NAME
+ # convert to lower-case
+ DOMAIN_NAME=`echo ${DOMAIN_NAME} | tr A-Z a-z`
echo "DOMAIN_NAME=${DOMAIN_NAME}" >> config/user.conf
fi
# END USER INTERACTION