From d744517e76f720936f79e9cd0c4a0eedc8323970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Mon, 29 Jan 2024 11:14:05 +0100 Subject: [PATCH] Update startup.sh --- startup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/startup.sh b/startup.sh index 7de7444..d3f6351 100755 --- a/startup.sh +++ b/startup.sh @@ -113,6 +113,11 @@ if [ "${POSTGRES_JNDI_ENABLED}" = "true" ]; then # Use a custom "web.xml" if the user mounted one into the container if [ -d "${CONFIG_OVERRIDES_DIR}" ] && [ -f "${CONFIG_OVERRIDES_DIR}/web.xml" ]; then echo "Installing configuration override for web.xml with substituted environment variables" + + if [ "${CORS_ENABLED}" = "true" ]; then + echo "Warning: the CORS_ENABLED's changes will be overwritten!" + fi + envsubst < "${CONFIG_OVERRIDES_DIR}"/web.xml > "${CATALINA_HOME}/webapps/geoserver/WEB-INF/web.xml" fi fi