wok diff apache/receipt @ rev 18658
Up slitaz-base-files(289)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 03 05:01:20 2015 +0200 (2015-12-03) |
parents | b6466c362ce8 |
children | d5f9f516b706 |
line diff
1.1 --- a/apache/receipt Thu Nov 12 16:05:44 2015 +0100 1.2 +++ b/apache/receipt Thu Dec 03 05:01:20 2015 +0200 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