1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#! /bin/sh # postinst script for lighttpd set -e if [ "$1" = "configure" ]; then if [ ! -r /var/www/index.html ]; then cp /usr/share/lighttpd/index.html /var/www/index.html else if md5sum --check --status /usr/share/lighttpd/index.html.md5 then cp /usr/share/lighttpd/index.html /var/www/index.html fi fi chown www-data:www-data /var/log/lighttpd chmod 0750 /var/log/lighttpd fi #DEBHELPER# exit 0 |