config: mail server setup

This commit is contained in:
Markus Witt 2019-04-16 18:48:32 +02:00
parent d2ff8ddddf
commit b64597e908

View file

@ -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
exec /usr/local/bin/hypnotoad -f index.pl