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