mirror of https://github.com/dirtbags/moth.git
Fix a few bugs
This commit is contained in:
parent
ab18a9b4d6
commit
4b4e74386e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue