diff --git a/gnuhealth.sh b/gnuhealth.sh index 3b79bd0..6a13959 100755 --- a/gnuhealth.sh +++ b/gnuhealth.sh @@ -3,6 +3,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/gnuhealth # Check prerequisites +docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh # Build Docker container diff --git a/gnuhealth/etc/init.d/gnuhealth b/gnuhealth/etc/init.d/gnuhealth index a9a6306..16e1723 100755 --- a/gnuhealth/etc/init.d/gnuhealth +++ b/gnuhealth/etc/init.d/gnuhealth @@ -4,7 +4,7 @@ description="GNU Health docker container" depend() { need docker net - use dns logger netmount + use dns logger netmount postfix after postgres } @@ -12,6 +12,7 @@ start() { /usr/bin/docker run -d --rm \ --name gnuhealth \ -h gnuhealth \ + --link postfix \ --link postgres \ -p 127.0.0.1:8008:8008 \ -v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \ diff --git a/gnuhealth/srv/gnuhealth/conf/trytond.conf b/gnuhealth/srv/gnuhealth/conf/trytond.conf index c3ecf43..4736224 100644 --- a/gnuhealth/srv/gnuhealth/conf/trytond.conf +++ b/gnuhealth/srv/gnuhealth/conf/trytond.conf @@ -12,3 +12,4 @@ ssl_webdav = False [email] from = gnuhealth@spotter.ngo +uri = smtp://postfix:25