travelynx/docker-run.sh

23 lines
402 B
Bash
Raw Normal View History

#!/bin/sh
2021-01-29 17:32:13 +00:00
#
# Copyright (C) Markus Witt
2023-06-24 16:36:59 +00:00
# Copyright (C) Birthe Friesel
2021-01-29 17:32:13 +00:00
#
# SPDX-License-Identifier: CC0-1.0
2019-04-13 21:49:49 +00:00
set -e
if ! [ -r travelynx.conf ]; then
echo "Configuration file (travelynx.conf) is missing. Did you set up the '/local' mountpoint?"
exit 1
fi
2019-04-16 16:48:32 +00:00
. local/email-transport.sh
if [ "$1" = worker ]; then
exec perl index.pl worker
fi
2019-04-13 21:49:49 +00:00
perl index.pl database migrate
exec hypnotoad -f index.pl