diff options
author | Antoine A <> | 2024-02-21 15:40:39 +0100 |
---|---|---|
committer | Antoine A <> | 2024-02-21 15:40:39 +0100 |
commit | 790a92a7ab6a940d3ad144ceeba4e7a36de3723a (patch) | |
tree | a9118461a8831174997042a58592d2829c4270cd | |
parent | 1040912ec5fc7323118d55dea005d0e13a95364a (diff) | |
download | deployment-790a92a7ab6a940d3ad144ceeba4e7a36de3723a.tar.gz deployment-790a92a7ab6a940d3ad144ceeba4e7a36de3723a.tar.bz2 deployment-790a92a7ab6a940d3ad144ceeba4e7a36de3723a.zip |
Fix regional currency script
-rwxr-xr-x | regional-currency/functions.sh | 10 | ||||
-rwxr-xr-x | regional-currency/main.sh | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh index 875a064..a244479 100755 --- 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 index 37d8018..144fe5a 100755 --- 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)" |