fix uninitialized SANDBOX_PORT if only starting sandbox without nexus

This commit is contained in:
Christian Grothoff 2023-06-22 10:27:11 +02:00
parent ef6496aba5
commit ee2471a8c3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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" ]