wok rev 7124

tazwikiss: launch httpd in /etc/rcS.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 05 01:25:19 2010 +0100 (2010-11-05)
parents 19914b75dc51
children 717afcb65646
files tazwikiss/receipt
line diff
     1.1 --- a/tazwikiss/receipt	Fri Nov 05 01:05:36 2010 +0100
     1.2 +++ b/tazwikiss/receipt	Fri Nov 05 01:25:19 2010 +0100
     1.3 @@ -64,16 +64,16 @@
     1.4  			cat > $1/etc/httpd.conf <<EOT
     1.5  H:/var/www
     1.6  A:0.0.0.0/0
     1.7 -*.sh:/bin/sh
     1.8  EOT
     1.9  		fi
    1.10  		while read line; do
    1.11 -			grep -q "$line" $1/etc/httpd.conf || continue
    1.12 +			grep -q "$line" $1/etc/httpd.conf && continue
    1.13  			echo "$line" >> $1/etc/httpd.conf
    1.14  		done <<EOT
    1.15 -I:index.sh
    1.16  *.sh:/bin/sh
    1.17  EOT
    1.18 +		grep -q ' httpd ' $1/etc/rcS.conf ||
    1.19 +		sed -i 's/ slim"/ httpd slim"/' $1/etc/rcS.conf
    1.20  		if [ -z "$1" ]; then
    1.21  			# Start Web server.
    1.22  			/etc/init.d/httpd stop