mirror of https://github.com/dirtbags/moth.git
17 lines
347 B
Bash
Executable File
17 lines
347 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Starts a standalone server using tcpsvd and eris
|
|
|
|
echo "Figuring out web user..."
|
|
for www in www-data http tc _ _www; do
|
|
id $www && break
|
|
done
|
|
if [ $www = _ ]; then
|
|
echo "Unable to determine httpd user on this system. Dying."
|
|
exit 1
|
|
fi
|
|
|
|
cd $(dirname $0)/../www
|
|
tcpserver -RHI localhost -u $www -g $www 0 80 eris -c -.
|
|
|