config: mail server setup
This commit is contained in:
parent
d2ff8ddddf
commit
b64597e908
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue