commit 6834a8e18cf5400a201492874270bb588bfdccb9
parent 3e12ffae1b7f43dd636974d36696fa46dec04bf7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 4 Mar 2023 16:00:58 +0100
fix URLs
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh
@@ -68,7 +68,6 @@ fi
echo -n "Configure the default demobank with ${CURRENCY}..."
-# FIXME: no sign up bonus, no debt should be the default here!
cd /tmp
sudo -E -u libeufin-sandbox \
libeufin-sandbox config \
@@ -83,11 +82,13 @@ echo -n "Start the bank..."
export LIBEUFIN_SANDBOX_ADMIN_PASSWORD="${SANDBOX_ADMIN_PASSWORD}"
echo "LIBEUFIN_SANDBOX_ADMIN_PASSWORD=\"${SANDBOX_ADMIN_PASSWORD}\"" >> /etc/libeufin/sandbox.env
+# TODO: grab port from configuration?
+SANDBOX_URL="http://localhost:5016/"
systemctl enable --now libeufin-sandbox
echo "DONE"
echo -n "Wait for the bank..."
-curl --max-time 2 --retry-connrefused --retry-delay 1 --retry 10 http://localhost:5016/ &> /dev/null
+curl --max-time 2 --retry-connrefused --retry-delay 1 --retry 10 ${SANDBOX_URL} &> /dev/null
echo "DONE"
@@ -103,7 +104,7 @@ systemctl enable --now libeufin-nexus
echo "DONE"
echo -n "Waiting for Nexus..."
-curl --max-time 2 --retry-connrefused --retry-delay 1 --retry 10 http://localhost:5001/ &> /dev/null
+curl --max-time 2 --retry-connrefused --retry-delay 1 --retry 10 http://localhost:5017/ &> /dev/null
echo "DONE"
@@ -111,13 +112,13 @@ echo -n "Register the exchange Sandbox account..."
export LIBEUFIN_SANDBOX_USERNAME="exchange-at-sandbox"
export LIBEUFIN_SANDBOX_PASSWORD=$SANDBOX_EXCHANGE_PASSWORD
libeufin-cli \
- sandbox --sandbox-url http://localhost:5000/ \
+ sandbox --sandbox-url ${SANDBOX_URL} \
demobank register
echo "DONE"
echo -n "Getting the exchange IBAN and Payto URI..."
EXCHANGE_DETAILS=$(libeufin-cli \
- sandbox --sandbox-url http://localhost:5000/ \
+ sandbox --sandbox-url ${SANDBOX_URL} \
demobank info)
echo "DONE"
@@ -136,14 +137,14 @@ export LIBEUFIN_SANDBOX_USERNAME="admin"
export LIBEUFIN_SANDBOX_PASSWORD=$SANDBOX_ADMIN_PASSWORD
echo -n "Create EBICS host at Sandbox..."
libeufin-cli sandbox \
- --sandbox-url http://localhost:5000 \
+ --sandbox-url ${SANDBOX_URL} \
ebicshost create --host-id ${EBICS_HOST_ID}
echo "OK"
echo -n "Create exchange EBICS subscriber at Sandbox..."
libeufin-cli sandbox \
- --sandbox-url http://localhost:5000 \
+ --sandbox-url ${SANDBOX_URL} \
demobank new-ebicssubscriber --host-id ${EBICS_HOST_ID} \
--user-id ${EBICS_USER_ID} --partner-id ${EBICS_PARTNER_ID} \
--bank-account exchange-at-sandbox
@@ -155,7 +156,7 @@ export LIBEUFIN_NEXUS_PASSWORD=$NEXUS_EXCHANGE_PASSWORD
export LIBEUFIN_NEXUS_URL="http://localhost:5001"
echo -n "Creating the EBICS connection at Nexus..."
libeufin-cli connections new-ebics-connection \
- --ebics-url "http://localhost:5000/ebicsweb" \
+ --ebics-url "${SANDBOX_URL}ebicsweb" \
--host-id ${EBICS_HOST_ID} \
--partner-id ${EBICS_PARTNER_ID} \
--ebics-user-id ${EBICS_USER_ID} \