Call CKAN's update-ip.sh in start_pre()

This commit is contained in:
Disassembler 2017-12-20 11:05:54 +01:00
parent 1ea2b63636
commit 7cdd22261e
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
SOURCE_DIR=$(realpath $(dirname "${0}")) SOURCE_DIR=$(realpath $(dirname "${0}"))

View File

@ -7,6 +7,10 @@ depend() {
use dns logger netmount use dns logger netmount
} }
start_pre() {
/srv/ckan/update-ip.sh
}
start() { 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 /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
} }