summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2024-02-21 17:17:14 +0100
committerAntoine A <>2024-02-21 17:17:14 +0100
commit231ee79d31c17b5e9a6f7b6aac192bd68523b172 (patch)
treea957b154f6cf14bb3d63c951b4c420ea0edfda36
parent790a92a7ab6a940d3ad144ceeba4e7a36de3723a (diff)
downloaddeployment-231ee79d31c17b5e9a6f7b6aac192bd68523b172.tar.gz
deployment-231ee79d31c17b5e9a6f7b6aac192bd68523b172.tar.bz2
deployment-231ee79d31c17b5e9a6f7b6aac192bd68523b172.zip
Add question numbering
-rwxr-xr-xregional-currency/functions.sh32
1 files changed, 16 insertions, 16 deletions
diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh
index a244479..77616ba 100755
--- a/regional-currency/functions.sh
+++ b/regional-currency/functions.sh
@@ -24,40 +24,40 @@ function check_user() {
function ask_questions() {
if test -z "${CURRENCY:-}"; then
- read -r -p "Enter the name of the regional currency (e.g. 'NETZBON'): " CURRENCY
+ read -r -p "1. Enter the name of the regional currency (e.g. 'NETZBON'): " CURRENCY
CURRENCY=$(normalize_currency "${CURRENCY}")
echo "CURRENCY=${CURRENCY}" >>config/user.conf
fi
if test -z "${FIAT_CURRENCY:-}"; then
- read -r -p "Enter the name of the fiat currency (e.g. 'CHF'): " FIAT_CURRENCY
+ read -r -p "2. Enter the name of the fiat currency (e.g. 'CHF'): " FIAT_CURRENCY
FIAT_CURRENCY=$(normalize_currency "${FIAT_CURRENCY}")
echo "FIAT_CURRENCY=${FIAT_CURRENCY}" >>config/user.conf
fi
if test -z "${BANK_NAME:-}"; then
- read -r -p "Enter the human-readable name of the bank (e.g. 'Taler Bank'): " BANK_NAME
+ read -r -p "3. Enter the human-readable name of the bank (e.g. 'Taler Bank'): " BANK_NAME
echo "BANK_NAME=\"${BANK_NAME}\"" >>config/user.conf
fi
if test -z "${DOMAIN_NAME:-}"; then
- read -r -p "Enter the domain name: " DOMAIN_NAME
+ read -r -p "4. Enter the domain name: " DOMAIN_NAME
# convert to lower-case
DOMAIN_NAME=$(echo "${DOMAIN_NAME}" | tr A-Z a-z)
check_dns
echo "DOMAIN_NAME=${DOMAIN_NAME}" >>config/user.conf
fi
if test -z "${ENABLE_TLS:-}"; then
- read -r -p "Setup TLS using Let's Encrypt? (y/n): " ENABLE_TLS
+ read -r -p "5. Setup TLS using Let's Encrypt? (y/n): " ENABLE_TLS
echo "ENABLE_TLS=${ENABLE_TLS}" >>config/user.conf
fi
if test -z "${TLS_EMAIL:-}"; then
if test "${ENABLE_TLS:-}" == y; then
- read -r -p "- Enter an email address for Let's Encrypt: " TLS_EMAIL
+ read -r -p "5.1. Enter an email address for Let's Encrypt: " TLS_EMAIL
echo "TLS_EMAIL=${TLS_EMAIL}" >>config/user.conf
fi
fi
if test -z "${TLS_TOS:-}"; then
if test "${ENABLE_TLS:-}" == y; then
- echo "- Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf."
- read -r -p "- You must agree in order to register with the ACME server. Do you agree? (y/n): " TLS_TOS
+ echo "5.2. Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf."
+ read -r -p "5.2. You must agree in order to register with the ACME server. Do you agree? (y/n): " TLS_TOS
if test "${TLS_TOS:-y}" != y; then
say "You must agree in order to register with the ACME server"
exit 1
@@ -66,26 +66,26 @@ function ask_questions() {
fi
fi
if test -z "${DO_OFFLINE:-}"; then
- read -r -p "Do you want Taler Exchange keys on this server (y) or externally on another server (n): " DO_OFFLINE
+ read -r -p "6. Do you want Taler Exchange keys on this server (y) or externally on another server (n): " DO_OFFLINE
echo "DO_OFFLINE=${DO_OFFLINE}" >>config/user.conf
fi
if test -z "${MASTER_PUBLIC_KEY:-}"; then
if test "${DO_OFFLINE:-y}" == n; then
- read -r -p "- Enter the exchange-offline master public key: " MASTER_PUBLIC_KEY
+ read -r -p "6.1. Enter the exchange-offline master public key: " MASTER_PUBLIC_KEY
echo "MASTER_PUBLIC_KEY=${MASTER_PUBLIC_KEY}" >>config/user.conf
fi
fi
if test -z "${DO_TELESIGN:-}"; then
- read -r -p "Setup sms two-factor authentication using Telesign https://www.telesign.com? (y/n): " DO_TELESIGN
+ read -r -p "7. Setup sms two-factor authentication using Telesign https://www.telesign.com? (y/n): " DO_TELESIGN
if test "${DO_TELESIGN:-y}" != n; then
- read -r -p "- Enter your Telesign Customer ID: " TELESIGN_CUSTOMER_ID
- read -r -s -p "- Enter your Telesign API Key: " TELESIGN_API_KEY
+ read -r -p "7.1. Enter your Telesign Customer ID: " TELESIGN_CUSTOMER_ID
+ read -r -s -p "7.2. Enter your Telesign API Key: " TELESIGN_API_KEY
echo "" # force new line
- read -r -p "- Enter a phone number to test your API key (e.g. '+447911123456'): " TELESIGN_PHONE
+ read -r -p "7.3. Enter a phone number to test your API key (e.g. '+447911123456'): " TELESIGN_PHONE
TELESIGN_AUTH_TOKEN=$(echo "$TELESIGN_CUSTOMER_ID:$TELESIGN_API_KEY" | base64 -w 0)
export AUTH_TOKEN=$TELESIGN_AUTH_TOKEN
echo "12345" | libeufin-tan-sms.sh $TELESIGN_PHONE
- read -r -p "- Enter the code received by $TELESIGN_PHONE : " TELESIGN_TEST_CODE
+ read -r -p "7.4. Enter the code received by $TELESIGN_PHONE : " TELESIGN_TEST_CODE
if test "${TELESIGN_TEST_CODE:-y}" != "12345"; then
say "Wrong code got '$TELESIGN_TEST_CODE' expected '12345', rerun this script to enter the right Telesign auth info"
exit 1
@@ -95,7 +95,7 @@ function ask_questions() {
echo "DO_TELESIGN=${DO_TELESIGN}" >>config/user.conf
fi
if test -z "${BANK_ADMIN_PASSWORD:-}"; then
- read -r -s -p "Enter the admin password for the bank (or press enter to autogenerate password): " BANK_ADMIN_PASSWORD
+ read -r -s -p "8. Enter the admin password for the bank (or press enter to autogenerate password): " BANK_ADMIN_PASSWORD
echo "BANK_ADMIN_PASSWORD=$(printf '%q' "${BANK_ADMIN_PASSWORD}")" >>config/user.conf
echo "" # force new line
fi