diff --git a/motech.sh b/motech.sh index 7b669f1..2a29ecb 100755 --- a/motech.sh +++ b/motech.sh @@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/motech # Check prerequisites docker image ls | grep -q activemq || $(realpath $(dirname "${0}"))/activemq.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 tomcat || $(realpath $(dirname "${0}"))/tomcat.sh diff --git a/motech/etc/init.d/motech b/motech/etc/init.d/motech index 0a059c9..3dfe959 100755 --- a/motech/etc/init.d/motech +++ b/motech/etc/init.d/motech @@ -4,7 +4,7 @@ description="Motech docker container" depend() { need docker net - use dns logger netmount + use dns logger netmount postfix after activemq postgres } @@ -13,6 +13,7 @@ start() { --name motech \ -h motech \ --link activemq \ + --link postfix \ --link postgres \ -p 127.0.0.1:8013:8013 \ -v /srv/motech/conf:/srv/tomcat/.motech \ diff --git a/motech/srv/motech/conf/config/org.motechproject.motech-platform-email/motech-email.properties b/motech/srv/motech/conf/config/org.motechproject.motech-platform-email/motech-email.properties index 73ebdec..f35a122 100644 --- a/motech/srv/motech/conf/config/org.motechproject.motech-platform-email/motech-email.properties +++ b/motech/srv/motech/conf/config/org.motechproject.motech-platform-email/motech-email.properties @@ -1 +1,2 @@ +mail.host=postfix mail.port=25