commit 790a92a7ab6a940d3ad144ceeba4e7a36de3723a parent 1040912ec5fc7323118d55dea005d0e13a95364a Author: Antoine A <> Date: Wed, 21 Feb 2024 15:40:39 +0100 Fix regional currency script Diffstat:
| M | regional-currency/functions.sh | | | 10 | +++------- |
| M | regional-currency/main.sh | | | 5 | +++-- |
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh @@ -84,14 +84,10 @@ function ask_questions() { read -r -p "- 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 - if test -z "${TELESIGN_CODE:-}"; then - TELESIGN_CODE=$RANDOM - echo "TELESIGN_CODE=\"${TELESIGN_CODE}\"" >>config/internal.conf - fi - echo "$TELESIGN_CODE" | libeufin-tan-sms.sh $TELESIGN_PHONE + echo "12345" | libeufin-tan-sms.sh $TELESIGN_PHONE read -r -p "- Enter the code received by $TELESIGN_PHONE : " TELESIGN_TEST_CODE - if test "${TELESIGN_TEST_CODE:-y}" != "$TELESIGN_CODE"; then - say "Wrong code got '$TELESIGN_TEST_CODE' expected '$TELESIGN_CODE', rerun this script to enter the right Telesign auth info" + 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 fi echo "TELESIGN_AUTH_TOKEN=\"${TELESIGN_AUTH_TOKEN}\"" >>config/user.conf diff --git a/regional-currency/main.sh b/regional-currency/main.sh @@ -74,10 +74,11 @@ if test -z "${BANK_PORT:-}"; then fi if test "${ENABLE_TLS:-}" == "y"; then - export PROTO="https" + PROTO="https" else - export PROTO="http" + PROTO="http" fi +echo "PROTO=${PROTO}" >>config/internal.conf say "" say "Configuring nginx (step 3 of 6)"