diff options
author | Markus Witt <feuerrot@feuerrot.org> | 2019-04-16 18:48:32 +0200 |
---|---|---|
committer | Markus Witt <feuerrot@feuerrot.org> | 2019-05-03 22:36:12 +0200 |
commit | b64597e908edec03e622cf8bb7eaed5aacf177a5 (patch) | |
tree | 087e85244bf9a8f97b1888d7df309f94cf51d274 /docker-run.sh | |
parent | d2ff8ddddfd0e0dc0a2c81e4ddeda1c3890d5a4e (diff) |
config: mail server setup
Diffstat (limited to 'docker-run.sh')
-rwxr-xr-x | docker-run.sh | 12 |
1 files changed, 11 insertions, 1 deletions
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 |