#!/bin/sh set -eu # CONFIG="${CKAN_CONFIG}/${CONFIG_FILE}" # # do we have config options to apply # if [ -e "$CKAN_CONFIG/$CONFIG_OPTIONS" ]; then # echo "Configuring custom options from $CONFIG_OPTIONS" # # use the config-tool to set existing options based on the custom config file # "$CKAN_HOME"/bin/paster --plugin=ckan config-tool "$CONFIG" -f "$CKAN_CONFIG/$CONFIG_OPTIONS" # # if you need to specify any dynamic IP addresses do it now # "$CKAN_HOME"/bin/paster --plugin=ckan config-tool "$CONFIG" -e \ # "ckan.harvest.mq.hostname = $REDIS_PORT_6379_TCP_ADDR" \ # "ckan.harvest.mq.port = $REDIS_PORT_6379_TCP_PORT" # fi