wok diff nginx/receipt @ rev 20505

partclone 0.2.89 -> 0.2.70: dpkg-architecture not used here
author Erkan Yilmaz <erkan@slitaz.org>
date Tue Oct 30 11:23:14 2018 +0000 (2018-10-30)
parents d6ca18366f41
children d25a28bf6b6c
line diff
     1.1 --- a/nginx/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.2 +++ b/nginx/receipt	Tue Oct 30 11:23:14 2018 +0000
     1.3 @@ -67,7 +67,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 lighttpd 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/$CONFIG_FILES" ]; then
    1.13  		cp -a "$1/$CONFIG_FILES" "$1/$CONFIG_FILES.bak"