diff --git a/ckan.sh b/ckan.sh index ad2ee66..7084815 100755 --- a/ckan.sh +++ b/ckan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh SOURCE_DIR=$(realpath $(dirname "${0}")) diff --git a/ckan/etc/init.d/ckan b/ckan/etc/init.d/ckan index 8d94797..8bf77b3 100644 --- a/ckan/etc/init.d/ckan +++ b/ckan/etc/init.d/ckan @@ -7,6 +7,10 @@ depend() { use dns logger netmount } +start_pre() { + /srv/ckan/update-ip.sh +} + start() { /usr/bin/docker run -d --rm --name ckan --link=postgres --link=redis --link=solr -p 127.0.0.1:9003:8003 -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan }