From 7cdd22261e2cf065801ec19262dd96522ff40d3a Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 20 Dec 2017 11:05:54 +0100 Subject: [PATCH] Call CKAN's update-ip.sh in start_pre() --- ckan.sh | 2 +- ckan/etc/init.d/ckan | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 }