diff options
author | Rafael Ferreira | 2015-06-20 13:40:59 -0300 |
---|---|---|
committer | Rafael Ferreira | 2015-06-20 13:40:59 -0300 |
commit | 020ba5f1e8f80197fafc31a6dc8f7f70b7562f8d (patch) | |
tree | d8e4ef7c740f264e64b2f68bd9ecd6ef0c710c6a /server.sh.in | |
download | aur-teeworlds-hunter.tar.gz |
Initial import
Diffstat (limited to 'server.sh.in')
-rw-r--r-- | server.sh.in | 12 |
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 + |