Fix a few bugs

This commit is contained in:
Neale Pickett 2010-10-22 09:36:28 -06:00
parent ab18a9b4d6
commit 4b4e74386e
3 changed files with 14 additions and 6 deletions

View File

@ -2,7 +2,8 @@
exec 2>&1
install -o root -m 0644 /dev/null /var/lib/ctf/points.log
install -o ctf -m 0755 -d /var/lib/ctf/points.new
install -o ctf -m 0755 -d /var/lib/ctf/points.tmp
touch /var/lib/ctf/points.log
exec ./pointsd

View File

@ -2,10 +2,13 @@
exec 2>&1
install -o ctf -m 0644 /dev/null /var/lib/ctf/puzzles.db
install -d /var/www
DB=/var/lib/ctf/puzzles.db
mkdir -p /var/www
touch $DB
chown ctf $DB
# Make an initial listing
./puzzled
exec inotifyd ./puzzled /var/lib/ctf/puzzles.db:w
exec inotifyd ./puzzled ${DB}:w

View File

@ -1,6 +1,10 @@
#! /bin/sh
exec 2>&1
install -o ctf -m 0644 /dev/null /var/lib/ctf/tokens.db
install -o ctf -m 0644 /dev/null /var/lib/ctf/claim.db
for fn in /var/lib/ctf/tokens.db /var/lib/ctf/claim.db; do
touch $fn
chown ctf $fn
done
exec tcpsvd -u ctf 0 1 /opt/mcp/bin/in.tokend