aboutsummarylogtreecommitdiffstats
path: root/server.sh.in
diff options
context:
space:
mode:
authorRafael Ferreira2015-06-20 13:40:59 -0300
committerRafael Ferreira2015-06-20 13:40:59 -0300
commit020ba5f1e8f80197fafc31a6dc8f7f70b7562f8d (patch)
treed8e4ef7c740f264e64b2f68bd9ecd6ef0c710c6a /server.sh.in
downloadaur-teeworlds-hunter.tar.gz
Initial import
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 000000000000..21a4744c7f40
--- /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
+