summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-23 15:18:33 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-23 15:18:33 +0200
commit1879d025bf19ffaa96d86855088ea1011b8d9562 (patch)
tree8a7ee4c2bbd7fabc7d990ec92f561e1b785e40f6 /src
parent16e2ac079eb67d1615e983047d2024015ce9bb42 (diff)
downloadexchange-1879d025bf19ffaa96d86855088ea1011b8d9562.tar.gz
exchange-1879d025bf19ffaa96d86855088ea1011b8d9562.tar.bz2
exchange-1879d025bf19ffaa96d86855088ea1011b8d9562.zip
handle unix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/testing/taler-unified-setup.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh
index 7bf14d4fb..643bacefb 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -448,7 +448,13 @@ if [ "1" = "$START_EXCHANGE" ]
then
echo -n "Starting exchange ..."
EXCHANGE_PORT=$(taler-config -c "$CONF" -s EXCHANGE -o PORT)
- EXCHANGE_URL="http://localhost:${EXCHANGE_PORT}/"
+ SERVE=$(taler-config -c "$CONF" -s EXCHANGE -o SERVE)
+ if [ "${SERVE}"= "unix" ]
+ then
+ EXCHANGE_URL=$(taler-config -c "$CONF" -s EXCHANGE -o BASE_URL)
+ else
+ EXCHANGE_URL="http://localhost:${EXCHANGE_PORT}/"
+ fi
MASTER_PRIV_FILE=$(taler-config -f -c "${CONF}" -s "EXCHANGE-OFFLINE" -o "MASTER_PRIV_FILE")
MASTER_PRIV_DIR=$(dirname "$MASTER_PRIV_FILE")
mkdir -p "${MASTER_PRIV_DIR}"