2022-02-19 15:32:34 +00:00
|
|
|
#!/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
|
|
|
|
2022-02-19 15:32:34 +00:00
|
|
|
set -e
|
2019-04-21 21:13:03 +00:00
|
|
|
|
2022-02-19 15:32:34 +00:00
|
|
|
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
|
|
|
|
2022-02-19 15:32:34 +00:00
|
|
|
. local/email-transport.sh
|
2019-05-03 20:50:59 +00:00
|
|
|
|
2022-02-19 15:32:34 +00:00
|
|
|
if [ "$1" = worker ]; then
|
2019-05-03 20:50:59 +00:00
|
|
|
exec perl index.pl worker
|
|
|
|
fi
|
2019-04-13 21:49:49 +00:00
|
|
|
|
2022-02-19 15:32:34 +00:00
|
|
|
perl index.pl database migrate
|
|
|
|
exec hypnotoad -f index.pl
|