summarylogtreecommitdiffstats
path: root/server.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'server.sh.in')
-rw-r--r--server.sh.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/server.sh.in b/server.sh.in
new file mode 100644
index 00000000000..21a4744c7f4
--- /dev/null
+++ b/server.sh.in
@@ -0,0 +1,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
+