mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-05 19:40:52 -07:00
15 lines
194 B
Bash
Executable file
15 lines
194 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
exec 2>&1
|
|
|
|
install -d /var/www
|
|
|
|
# Install truncates files
|
|
DB=/var/lib/ctf/puzzles.db
|
|
touch $DB
|
|
chown ctf $DB
|
|
|
|
# Make an initial listing
|
|
./puzzled
|
|
|
|
exec inotifyd ./puzzled ${DB}:w
|