#!/bin/sh -x if [ ! -f /usr/sbin/lighttpd-suexec ] then curl http://gist.github.com/raw/519592/a76f86a7077d70029ec3230e046793d1993914dc/suexec+lighttpd.sh | sudo tee /usr/sbin/lighttpd-suexec chmod 0755 /usr/sbin/lighttpd-suexec fi if [ ! -f /usr/local/apache2/bin/suexec ] then curl http://gist.github.com/raw/519592/53beada57f1a33e29087ffda5595c6f73ee3d056/build-suexecwrapper-for-lighttpd.sh | sudo /bin/sh fi ( cd /etc/lighttpd/conf-enabled || exit 9 if [ -f 10-cgi.conf ] then curl http://gist.github.com/raw/519592/ce0883e01ef8328627c98e80695c6f8113801bde/10-cgi.conf >> 10-cgi.conf else wget -SN http://gist.github.com/raw/519592/ce0883e01ef8328627c98e80695c6f8113801bde/10-cgi.conf fi )