summaryrefslogtreecommitdiff
path: root/debian/lighttpd.postinst
diff options
context:
space:
mode:
authorKrzysztof Krzyżaniak <eloy@debian.org>2006-01-27 15:53:46 +0000
committerKrzysztof Krzyżaniak <eloy@debian.org>2006-01-27 15:53:46 +0000
commitc0e35357c93c90adcb1457c1d673f1737f697ab0 (patch)
tree76925188df70b48c9008fa3f2cf9b7a181790c0f /debian/lighttpd.postinst
parentb80ce006d7730be5cad6d3aed613dd74fef04576 (diff)
downloadlighttpd-c0e35357c93c90adcb1457c1d673f1737f697ab0.tar.gz
eloy: md5sum
Diffstat (limited to 'debian/lighttpd.postinst')
-rw-r--r--debian/lighttpd.postinst15
1 files changed, 8 insertions, 7 deletions
diff --git a/debian/lighttpd.postinst b/debian/lighttpd.postinst
index 31d293e..b076161 100644
--- a/debian/lighttpd.postinst
+++ b/debian/lighttpd.postinst
@@ -5,17 +5,18 @@ set -e
if [ "$1" = "configure" ]; then
chown www-data:www-data /var/log/lighttpd
- chown www-data:www-data /var/www
- if [ -r /var/www/index.html ];
+
+ grep 853e9a42efca88ae0dd1a83aeb215047 /var/www/index.html >/dev/null
+ MD5=$?
+ if [ ! -r /var/www/index.html ] || [ $MD5 == 0 ];
then
- echo "Plik istnieje";
- else
cp /usr/share/lighttpd/index.html /var/www/index.html
- fi
+ fi
+
+ chown www-data:www-data /var/www
+
fi
#DEBHELPER#
exit 0
-
-