wok-current diff apache/receipt @ rev 16806

busybox/dpkg_deb: add xz support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 09 11:25:23 2014 +0200 (2014-07-09)
parents 854aac736a5d
children f2bdc266fba2
line diff
     1.1 --- a/apache/receipt	Tue Oct 15 22:45:52 2013 +0000
     1.2 +++ b/apache/receipt	Wed Jul 09 11:25:23 2014 +0200
     1.3 @@ -78,7 +78,7 @@
     1.4  	# Just in case.
     1.5  	chown www.www $1/var/log/$PACKAGE
     1.6  	ping -c 2 $(hostname) > /dev/null 2>&1 || 
     1.7 -		sed -i "s/localhost/$(hostname) localhost/" /etc/hosts
     1.8 +		sed -i "s/localhost/$(hostname) localhost/" $1/etc/hosts
     1.9  	[ -s $1/etc/ssl/apache/apache.pem ] ||
    1.10  	openssl req -new -x509 -keyout $1/etc/ssl/apache/apache.pem \
    1.11  		-out $1/etc/ssl/apache/apache.pem -days 3650 -nodes <<EOT
    1.12 @@ -97,6 +97,7 @@
    1.13  		echo "Reconfiguring $pkg for $PACKAGE..."
    1.14  		tazpkg reconfigure $pkg
    1.15  	done
    1.16 +	[ -f $1/etc/php.ini ] && tazpkg get-install php-apache --root=$1
    1.17  	if [ -z "$1" ]; then
    1.18  		for i in lighttpd ; do
    1.19  			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop