aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-06-22 10:27:11 +0200
committerChristian Grothoff <christian@grothoff.org>2023-06-22 10:27:11 +0200
commitee2471a8c32ad319c292164b89f63c59ee80c7b1 (patch)
treeb4043af308b94c8b761e41555dea191f6bf7ff0c
parentef6496aba56dd2472a61670f91ca2896022a45b7 (diff)
downloadexchange-ee2471a8c32ad319c292164b89f63c59ee80c7b1.tar.xz
fix uninitialized SANDBOX_PORT if only starting sandbox without nexus
-rwxr-xr-xsrc/testing/taler-unified-setup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh
index 2602bca0b..436496395 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -235,6 +235,12 @@ then
NEXUS_PORT="0"
SANDBOX_PORT="1$BANK_PORT"
fi
+else
+ if [ "1" = "$START_SANDBOX" ]
+ then
+ BANK_PORT=$(taler-config -c "$CONF" -s "BANK" -o "HTTP_PORT")
+ SANDBOX_PORT="$BANK_PORT"
+ fi
fi
if [ "1" = "$START_SANDBOX" ]