moth/packages/tanks/service/tanksd/run

16 lines
423 B
Plaintext
Raw Normal View History

2012-04-19 17:40:30 -06:00
#! /bin/sh -e
exec 2>&1
2012-07-22 17:14:06 -06:00
mkdir -p $CTF_BASE/state/tanks/players
mkdir -p $CTF_BASE/state/tanks/www
chown ctf $CTF_BASE/state/tanks
chown ctf $CTF_BASE/state/tanks/players
2012-07-22 17:14:06 -06:00
ln -s $CTF_BASE/state/tanks/www $CTF_BASE/www/tanks
ln -s $CTF_BASE/packages/tanks/html/* $CTF_BASE/state/tanks/www/ || true
ln -s summary.html $CTF_BASE/tanks/www/index.html || true
2011-02-12 20:25:34 -07:00
2012-07-22 17:14:06 -06:00
PATH=/bin:$CTF_BASE/packages/tanks/bin; export PATH
exec ./tanksd