summarylogtreecommitdiffstats
path: root/server.sh.in
blob: 21a4744c7f4009e65d7121d294a5543dffd5bcb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#/bin/sh
# Run the teeworlds modified server "@MODNAME@" with its config file

bin=/usr/share/@MODNAME@/teeworlds_srv
cfg=/usr/share/@MODNAME@/server.cfg

if [ ! -z "$1" -a "$1" == "-f"]; then
    $bin -f $2   # expects config file in "$2
else
    $bin -f $cfg
fi