summaryrefslogtreecommitdiff
path: root/docker-run.sh
blob: a75d5a068bb641cb388cefd7410a5eec5141ab94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Copyright (C) Markus Witt
# Copyright (C) Daniel Friesel
#
# SPDX-License-Identifier: CC0-1.0

set -e

if ! [ -r travelynx.conf ]; then
	echo "Configuration file (travelynx.conf) is missing. Did you set up the '/local' mountpoint?"
	exit 1
fi

. local/email-transport.sh

if [ "$1" = worker ]; then
	exec perl index.pl worker
fi

perl index.pl database migrate
exec hypnotoad -f index.pl