travelynx/docker-run.sh

23 lines
444 B
Bash
Raw Normal View History

2019-04-13 21:49:49 +00:00
#!/bin/sh
set -eu
if [ ! -f travelynx.conf ]
then
echo "The configuration file is missing"
exit 1
fi
2019-04-16 16:48:32 +00:00
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
2019-04-13 21:49:49 +00:00
perl index.pl database migrate
2019-04-16 16:48:32 +00:00
exec /usr/local/bin/hypnotoad -f index.pl