diff --git a/ckan.sh b/ckan.sh index b5c1fde..ad87a9a 100755 --- a/ckan.sh +++ b/ckan.sh @@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan # Check prerequisites docker image ls | grep -q ckan-datapusher || $(realpath $(dirname "${0}"))/ckan-datapusher.sh +docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh docker image ls | grep -q redis || $(realpath $(dirname "${0}"))/redis.sh docker image ls | grep -q solr || $(realpath $(dirname "${0}"))/solr.sh diff --git a/ckan/etc/init.d/ckan b/ckan/etc/init.d/ckan index da88da1..7b2cb83 100755 --- a/ckan/etc/init.d/ckan +++ b/ckan/etc/init.d/ckan @@ -4,7 +4,7 @@ description="CKAN docker container" depend() { need docker net - use dns logger netmount + use dns logger netmount postfix after postgres redis solr ckan-datapusher } @@ -16,6 +16,8 @@ start() { /usr/bin/docker run -d --rm \ --name ckan \ -h ckan \ + --link ckan-datapusher \ + --link postfix \ --link postgres \ --link redis \ --link solr \ diff --git a/ckan/srv/ckan/conf/ckan.ini b/ckan/srv/ckan/conf/ckan.ini index 1dc7cdc..020b8cf 100644 --- a/ckan/srv/ckan/conf/ckan.ini +++ b/ckan/srv/ckan/conf/ckan.ini @@ -199,7 +199,7 @@ ckan.hide_activity_from_users = %(ckan.site_id)s #email_to = errors@example.com #error_email_from = ckan-errors@example.com -smtp.server = localhost +smtp.server = postfix smtp.starttls = False #smtp.user = username@example.com #smtp.password = your_password