EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit adf4578d authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Configuring mapcache XML template

parent fe6c522c
No related branches found
No related tags found
1 merge request!6Cache native swift
......@@ -3,10 +3,30 @@ echo "Running configure.sh"
echo "Generating directory for seeding logs"
mkdir -p "${INSTALL_DIR}"
mkdir -p "/cache-db/${COLLECTION}"
cd "${INSTALL_DIR}"
cat /mapcache-template.xml \
| sed -e "s/{{ST_AUTH_VERSION}}/$(echo ${ST_AUTH_VERSION} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{OS_AUTH_URL_SHORT}}/$(echo ${OS_AUTH_URL_SHORT} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{OS_TENANT_NAME}}/$(echo ${OS_TENANT_NAME} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{OS_TENANT_ID}}/$(echo ${OS_TENANT_ID} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{OS_USERNAME}}/$(echo ${OS_USERNAME} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{OS_PASSWORD}}/$(echo ${OS_PASSWORD} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{BUCKET_NAME}}/$(echo ${BUCKET_NAME} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{DB_USER}}/$(echo ${DB_USER} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{DB_PW}}/$(echo ${DB_PW} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{DB_HOST}}/$(echo ${DB_HOST} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{DB_PORT}}/$(echo ${DB_PORT} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s/{{DB_NAME}}/$(echo ${DB_NAME} | sed -e 's/[]\/$*.^[]/\\&/g')/g" \
| sed -e "s;http://localhost/ows;http://${RENDERER_HOST}/ows;" > mapcache.xml
cd -
chown -R www-data:www-data "${INSTALL_DIR}"
mkdir -p "/cache-db/${COLLECTION}"
if [ ! -f "${APACHE_CONF}" ] ; then
echo "Adding Apache configuration"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment