summaryrefslogtreecommitdiff
path: root/netzbon/config_launch_libeufin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'netzbon/config_launch_libeufin.sh')
-rwxr-xr-xnetzbon/config_launch_libeufin.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh
index 3b42f79..7db5ae4 100755
--- a/netzbon/config_launch_libeufin.sh
+++ b/netzbon/config_launch_libeufin.sh
@@ -170,7 +170,13 @@ 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..."
-libeufin-sandbox default-exchange "https://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO
+if test ${ENABLE_TLS:-} == "y"
+then
+ PROTO="https"
+else
+ PROTO="http"
+fi
+libeufin-sandbox default-exchange "${PROTO}://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO
say "DONE"
export LIBEUFIN_SANDBOX_USERNAME="admin"