From 661e81a0a3443c02ce4f90056d811096a0e7d698 Mon Sep 17 00:00:00 2001 From: MS Date: Fri, 10 Mar 2023 15:52:39 +0100 Subject: moving var def above --- netzbon/config_launch_libeufin.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh index 8608682..13dd448 100755 --- a/netzbon/config_launch_libeufin.sh +++ b/netzbon/config_launch_libeufin.sh @@ -48,6 +48,12 @@ fi # TODO: add sanity-checks for presence of other required env-vars +if test ${ENABLE_TLS:-} == "y" +then + PROTO="https" +else + PROTO="http" +fi say "Setting up libeufin" @@ -170,12 +176,6 @@ echo "EXCHANGE_IBAN=\"${EXCHANGE_IBAN}\"" >> ${MY_DIR}/config/internal.conf echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\"" >> ${MY_DIR}/config/internal.conf say "Setting the default exchange at Sandbox..." -if test ${ENABLE_TLS:-} == "y" -then - PROTO="https" -else - PROTO="http" -fi libeufin-sandbox default-exchange "${PROTO}://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO say "DONE" -- cgit v1.2.3