wok diff lighttpd/receipt @ rev 20088

Up slitaz-configs (312), tazinst (90), tazlito (464)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 29 16:02:41 2017 +0200 (2017-09-29)
parents 6fab3264ba87
children ea835222df2a
line diff
     1.1 --- a/lighttpd/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/lighttpd/receipt	Fri Sep 29 16:02:41 2017 +0200
     1.3 @@ -79,7 +79,9 @@
     1.4  # We stop the server by default in case of upgarde.
     1.5  pre_install()
     1.6  {
     1.7 -	[ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
     1.8 +	[ -z "$1" ] && for i in httpd ngnix apache cherokee $PACKAGE ; do
     1.9 +		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.10 +	done
    1.11  	# Backup config file.
    1.12  	if [ -d "$1/etc/lighttpd" ]; then
    1.13  		cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak"