post_install() { COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include` if [ $COUNT == 0 ] then echo "==> Adding mythweb.include to conf.include" echo "include \"/etc/lighttpd/mythweb.include\"" >> /etc/lighttpd/conf.include fi echo echo "==> Forcing a re-read of lighttpd's configuration file." echo "" /sbin/sv hup /service/lighttpd } post_upgrade() { post_install } post_remove() { COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include` if [ $COUNT -gt 0 ] then echo "==> Removing mythweb.include from conf.include" sed -i 's#include \"/etc/lighttpd/mythweb.include\"##' -i /etc/lighttpd/conf.include fi echo echo "==> Forcing a re-read of lighttpd's configuration file." echo "" /sbin/sv hup /service/lighttpd #-- }