summaryrefslogtreecommitdiff
path: root/debian/lighttpd.postinst
blob: 1407a05c148d83241892840aec0f51d2d2db2b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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
	fi
        mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null
	chown www-data:www-data /var/log/lighttpd /var/run/lighttpd /var/cache/lighttpd
	chmod 0750 /var/log/lighttpd /var/run/lighttpd
fi

#DEBHELPER#

exit 0