1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-06 03:50:56 -07:00
moth/packages/mcp/service/puzzled/run
2011-09-23 16:04:25 -06:00

16 lines
225 B
Bash
Executable file

#! /bin/sh -e
exec 2>&1
DB=/var/lib/ctf/puzzles.db
adduser -D -S -h /var/lib/ctf -H ctf || true
mkdir -p /var/lib/ctf /var/www
touch $DB
chown ctf $DB
# Make an initial listing
./puzzled
exec inotifyd ./puzzled ${DB}:w