mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-06 12:00:34 -07:00
14 lines
166 B
Bash
Executable file
14 lines
166 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
exec 2>&1
|
|
|
|
DB=/var/lib/ctf/puzzles.db
|
|
|
|
mkdir -p /var/www
|
|
touch $DB
|
|
chown ctf $DB
|
|
|
|
# Make an initial listing
|
|
./puzzled
|
|
|
|
exec inotifyd ./puzzled ${DB}:w
|