mirror of https://github.com/dirtbags/moth.git
22 lines
313 B
Plaintext
22 lines
313 B
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
mkdir -p /var/www
|
||
|
cd /var/www
|
||
|
|
||
|
# Link in puzzles and web pages
|
||
|
for d in /opt/*; do
|
||
|
if [ -d $d/puzzles ]; then
|
||
|
ln -s $d/puzzles $(basename $d)
|
||
|
fi
|
||
|
if [ -d $d/www ]; then
|
||
|
ln -s $d/www/* .
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exec thttpd -D \
|
||
|
-nos \
|
||
|
-u ctf \
|
||
|
-c "**.cgi" \
|
||
|
-T "utf-8"
|
||
|
|