moth/bin/httpd

17 lines
351 B
Plaintext
Raw Normal View History

#!/bin/sh -e
# Starts a standalone server using tcpsvd and eris
echo "Figuring out web user..."
2018-07-07 16:42:14 -06:00
for www in www 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 -.