summaryrefslogtreecommitdiff
path: root/debian/lighttpd.postinst
blob: e07ce4723c352b4041e79f296099b1344cd583b4 (plain)
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.lighttpd.html ];
   	then
   		cp /usr/share/lighttpd/index.html /var/www/index.lighttpd.html
   	else
   		if md5sum --check --status /usr/share/lighttpd/index.html.md5
        	then
        		cp /usr/share/lighttpd/index.html /var/www/index.lighttpd.html
        	fi
	fi
	chown www-data:www-data /var/log/lighttpd
	chmod 0750 /var/log/lighttpd
fi

#DEBHELPER#

exit 0