Update startup.sh
parent
c691b3578b
commit
d744517e76
|
|
@ -113,6 +113,11 @@ if [ "${POSTGRES_JNDI_ENABLED}" = "true" ]; then
|
||||||
# Use a custom "web.xml" if the user mounted one into the container
|
# 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
|
if [ -d "${CONFIG_OVERRIDES_DIR}" ] && [ -f "${CONFIG_OVERRIDES_DIR}/web.xml" ]; then
|
||||||
echo "Installing configuration override for web.xml with substituted environment variables"
|
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"
|
envsubst < "${CONFIG_OVERRIDES_DIR}"/web.xml > "${CATALINA_HOME}/webapps/geoserver/WEB-INF/web.xml"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue