moth/packages/mcp/bin/new-contest

32 lines
619 B
Plaintext
Raw Normal View History

2011-01-04 12:35:15 -07:00
#! /bin/sh
if [ "$1" != "-f" ]; then
2011-01-04 12:35:15 -07:00
echo "Usage: $0 -f"
echo
echo "Wipes out the current contest. This operation is not"
echo "reversable, which is why you have to specify -f to signify"
echo "that you know what you're getting into."
exit
fi
sv d tokend
sv d pointsd
sv d puzzled
sv d tanksd
rm -f /var/lib/ctf/tokens.db
rm -f /var/lib/ctf/points.log
rm -f /var/www/scoreboard.html
rm -f /var/lib/ctf/puzzles.db
rm -rf /var/lib/ctf/points.new
rm -rf /var/lib/ctf/points.tmp
rm -rf /var/lib/ctf/tanks
rm -rf /var/lib/ctf/teams
backup-pass
2011-01-04 12:35:15 -07:00
sv u tokend
sv u pointsd
sv u puzzled
sv u tanksd