Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
19 lines
616 B
Diff
19 lines
616 B
Diff
--- a/bin/startup.sh
|
|
+++ b/bin/startup.sh
|
|
@@ -66,12 +66,9 @@ fi
|
|
|
|
#Find the configuration directory: GEOSERVER_DATA_DIR
|
|
if [ -z "${GEOSERVER_DATA_DIR:-}" ]; then
|
|
- if [ -r "${GEOSERVER_HOME}/data_dir" ]; then
|
|
- export GEOSERVER_DATA_DIR="${GEOSERVER_HOME}/data_dir"
|
|
- else
|
|
- echo "No GEOSERVER_DATA_DIR found, using application defaults"
|
|
- GEOSERVER_DATA_DIR=""
|
|
- fi
|
|
+ echo "GEOSERVER_DATA_DIR is not provided. Using $(pwd)/geoserver/data_dir directory"
|
|
+ mkdir -p "$(pwd)"/geoserver/data_dir
|
|
+ GEOSERVER_DATA_DIR="$(pwd)/geoserver/data_dir"
|
|
fi
|
|
|
|
cd "${GEOSERVER_HOME}" || exit 1
|