wok diff lighttpd/receipt @ rev 18897

syslinux/isohybrid.exe add -r support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 14 22:06:06 2016 +0100 (2016-02-14)
parents 9e01bc6321ea
children 3630f18392bd
line diff
     1.1 --- a/lighttpd/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/lighttpd/receipt	Sun Feb 14 22:06:06 2016 +0100
     1.3 @@ -55,8 +55,7 @@
     1.4  
     1.5  	# Modules.
     1.6  	mkdir -p $fs/usr/lib/lighttpd
     1.7 -	for module in $BASE_MODULES
     1.8 -	do
     1.9 +	for module in $BASE_MODULES; do
    1.10  		cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
    1.11  		echo -n "Copying : mod_${module}.so" && status
    1.12  	done
    1.13 @@ -80,21 +79,21 @@
    1.14  # We stop the server by default in case of upgarde.
    1.15  pre_install()
    1.16  {
    1.17 -	echo "Processing pre-install commands..."
    1.18  	[ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
    1.19  	# Backup config file.
    1.20  	if [ -d "$1/etc/lighttpd" ]; then
    1.21  		cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak"
    1.22  	fi
    1.23  }
    1.24 +
    1.25  post_install()
    1.26  {
    1.27 -	echo "Processing post-install commands..."
    1.28  	# Restore original config.
    1.29  	if [ -d "$1/etc/lighttpd.bak" ]; then
    1.30  		rm -rf "$1/etc/lighttpd"
    1.31  		mv "$1/etc/lighttpd.bak" "$1/etc/lighttpd"
    1.32  	fi
    1.33 +
    1.34  	# Just in case.
    1.35  	chown www.www "$1/var/log/$PACKAGE"
    1.36  	[ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 ||