wok-next diff lighttpd-ssl/receipt @ rev 19688

xscreensaver: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 11 15:41:38 2017 +0200 (2017-04-11)
parents d6ca18366f41
children 8d3183aefad5
line diff
     1.1 --- a/lighttpd-ssl/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.2 +++ b/lighttpd-ssl/receipt	Tue Apr 11 15:41:38 2017 +0200
     1.3 @@ -95,7 +95,13 @@
     1.4  # We stop the server by default in case of upgarde.
     1.5  pre_install()
     1.6  {
     1.7 -	[ -f /etc/init.d/lighttpd ] && /etc/init.d/lighttpd stop
     1.8 +	[ -z "$1" ] && for i in httpd lighttpd 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"
    1.14 +	fi
    1.15  }
    1.16  
    1.17  post_install()