mirror of
https://github.com/derf/travelynx
synced 2024-12-02 17:29:11 +00:00
8ec78343e7
Closes #4
22 lines
402 B
Bash
Executable file
22 lines
402 B
Bash
Executable file
#!/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
|