From b64597e908edec03e622cf8bb7eaed5aacf177a5 Mon Sep 17 00:00:00 2001 From: Markus Witt Date: Tue, 16 Apr 2019 18:48:32 +0200 Subject: config: mail server setup --- docker-run.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker-run.sh b/docker-run.sh index b438a19..f147b77 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -7,6 +7,16 @@ then exit 1 fi +if [ \ + "${TRAVELYNX_MAIL_DISABLE:-0}" -eq 0 \ + -a "${TRAVELYNX_MAIL_HOST:-unset}" != "unset" \ +] +then + export EMAIL_SENDER_TRANSPORT=SMTP + export EMAIL_SENDER_TRANSPORT_HOST=${TRAVELYNX_MAIL_HOST} + export EMAIL_SENDER_TRANSPORT_PORT=${TRAVELYNX_MAIL_PORT:-25} +fi + perl index.pl database migrate -exec /usr/local/bin/hypnotoad -f index.pl \ No newline at end of file +exec /usr/local/bin/hypnotoad -f index.pl -- cgit v1.2.3