docker-ckan/ckan/docker-entrypoint.d/00_update_who.sh

9 lines
326 B
Bash

#!/bin/bash
# Update who.ini when exists APACHE_CKAN_LOCATION
echo "Update who.ini"
if [ -n "$APACHE_CKAN_LOCATION" ] && [ "$APACHE_CKAN_LOCATION" != "/" ]; then \
sed -i "s|\${WHO_LOCATION}|$APACHE_CKAN_LOCATION|g" ${APP_DIR}/who.ini; \
else \
sed -i "s|\${WHO_LOCATION}|/|g" ${APP_DIR}/who.ini; \
fi