Skip to content

Commit e0da551

Browse files
committed
bootstrap-testdata: backport from ba934b8
1 parent 37183a7 commit e0da551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

birdhouse/scripts/bootstrap-testdata

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ COMPOSE_DIR="${COMPOSE_DIR:-$(dirname "${THIS_DIR}")}"
1717
if [ -f "${COMPOSE_DIR}/read-configs.include.sh" ]; then
1818
. "${COMPOSE_DIR}/read-configs.include.sh"
1919

20-
# Get THREDDS_SERVICE_DATA_LOCATION_ON_HOST
20+
# Get THREDDS_SERVICE_DATA_LOCATION_ON_HOST, BIRDHOUSE_DATA_PERSIST_ROOT
2121
read_configs
2222
fi
2323

2424

2525
if [ -z "${DATASET_ROOT}" ]; then
2626
# Default for when unable to source read-configs.include.sh (ie when
2727
# used standalone outside of the checkout).
28-
DATASET_ROOT="${THREDDS_SERVICE_DATA_LOCATION_ON_HOST:=/data/datasets}"
28+
DATASET_ROOT="${DATASET_ROOT:-${THREDDS_SERVICE_DATA_LOCATION_ON_HOST:-${BIRDHOUSE_DATA_PERSIST_ROOT:-/data}/datasets}}"
2929
fi
3030

3131
FROM_SERVER=${FROM_SERVER:-"https://pavics.ouranos.ca/twitcher/ows/proxy/thredds/fileServer/birdhouse"}

0 commit comments

Comments
 (0)