moth/mcp/setup

22 lines
569 B
Plaintext
Raw Normal View History

2010-09-23 18:23:00 -06:00
#! /bin/sh
2010-09-23 23:27:14 -06:00
## Set up the MCP (Master Control Program) server
2010-09-23 18:23:00 -06:00
hostname mcp
2010-09-24 22:28:40 -06:00
2010-09-23 23:27:14 -06:00
cp -r service/* /var/service/
cp -r www /var/
install -o ctf -m 0644 /dev/null /var/lib/ctf/tokens.db
install -o ctf -m 0644 /dev/null /var/lib/ctf/claim.db
install -o ctf -m 0644 /dev/null /var/lib/ctf/puzzles.db
install -o root -m 0644 /dev/null /var/lib/ctf/points.log
install -o ctf -d /var/lib/ctf/points.new
install -o ctf -d /var/lib/ctf/points.tmp
install -o root -d /var/lib/ctf/teams/names
install -o root -d /var/lib/ctf/teams/colors
install -o root -d /var/lib/ctf/token.keys