wok-next diff apache/receipt @ rev 18653

Add drakon-editor
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 02 15:42:05 2015 +0100 (2015-12-02)
parents b6466c362ce8
children d5f9f516b706
line diff
     1.1 --- a/apache/receipt	Thu Nov 12 16:05:44 2015 +0100
     1.2 +++ b/apache/receipt	Wed Dec 02 15:42:05 2015 +0100
     1.3 @@ -103,12 +103,7 @@
     1.4  		tazpkg reconfigure $pkg
     1.5  	done
     1.6  	[ -f $1/etc/php.ini ] && tazpkg get-install php-apache --root=$1
     1.7 -	if [ -z "$1" ]; then
     1.8 -		for i in lighttpd ; do
     1.9 -			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.10 -		done
    1.11 -		/etc/init.d/$PACKAGE start
    1.12 -	fi
    1.13 +	[ "$1" ] || netstat -ltn | grep -q :80 || /etc/init.d/$PACKAGE start
    1.14  }
    1.15  
    1.16  # Rules to clean extras dirs or files