File: lighttpd.postinst

package info (click to toggle)
lighttpd 1.4.13-4etch12
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,480 kB
  • ctags: 3,537
  • sloc: ansic: 37,630; sh: 8,915; perl: 2,215; yacc: 584; makefile: 374; php: 9
file content (22 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
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    
   chown www-data:www-data /var/www
fi

#DEBHELPER#

exit 0