1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 21:11:06 -07:00
moth/mcp/service/httpd/run
Neale Pickett 2532fe5e43 I think everything's working...
* Octopus changes
* Change how things start a little (hopefully cleaner)
* Fix bubblebabble bug
* other junk, I don't know
2010-09-29 17:38:54 -06:00

21 lines
313 B
Bash
Executable file

#! /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"