wok rev 18715
apache, lighttpd: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 16 23:00:12 2015 +0100 (2015-12-16) |
parents | f45ab85f7718 |
children | 77dc6129b023 |
files | apache/receipt lighttpd/receipt |
line diff
1.1 --- a/apache/receipt Wed Dec 16 21:14:36 2015 +0100 1.2 +++ b/apache/receipt Wed Dec 16 23:00:12 2015 +0100 1.3 @@ -103,7 +103,8 @@ 1.4 tazpkg reconfigure $pkg 1.5 done 1.6 [ -f $1/etc/php.ini ] && tazpkg get-install php-apache --root=$1 1.7 - [ "$1" ] || netstat -ltn | grep -q :80 || /etc/init.d/$PACKAGE start 1.8 + [ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 || 1.9 + /etc/init.d/$PACKAGE start 1.10 } 1.11 1.12 # Rules to clean extras dirs or files
2.1 --- a/lighttpd/receipt Wed Dec 16 21:14:36 2015 +0100 2.2 +++ b/lighttpd/receipt Wed Dec 16 23:00:12 2015 +0100 2.3 @@ -97,5 +97,6 @@ 2.4 fi 2.5 # Just in case. 2.6 chown www.www $1/var/log/$PACKAGE 2.7 - [ "$1" ] || netstat -ltn | grep -q :80 || /etc/init.d/$PACKAGE start 2.8 + [ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 || 2.9 + /etc/init.d/$PACKAGE start 2.10 }