wok-6.x diff php-cherokee/receipt @ rev 19965

Up ncdc (1.20)
author Paul Issott <paul@slitaz.org>
date Mon May 29 17:41:54 2017 +0100 (2017-05-29)
parents 55f67249b264
children ccb0caebef6f
line diff
     1.1 --- a/php-cherokee/receipt	Tue Jun 03 01:07:29 2014 +0200
     1.2 +++ b/php-cherokee/receipt	Mon May 29 17:41:54 2017 +0100
     1.3 @@ -31,19 +31,19 @@
     1.4  post_install()
     1.5  {
     1.6  	# Enable php
     1.7 -#	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
     1.8 -#	  [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \
     1.9 -#	  	tazpkg get-install lighttpd-modules --root=$1/
    1.10 +#	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.11 +#	  [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
    1.12 +#	  	tazpkg get-install lighttpd-modules --root="$1/"
    1.13  #	  sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
    1.14  #	    -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
    1.15  #	    -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n  )))|' \
    1.16 -#	    -i $1/etc/lighttpd/lighttpd.conf
    1.17 -#	  grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \
    1.18 +#	    -i "$1/etc/lighttpd/lighttpd.conf"
    1.19 +#	  grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
    1.20  #	  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
    1.21 -#	  	    -i $1/etc/lighttpd/lighttpd.conf
    1.22 -#	  grep -q php3 $1/etc/lighttpd/lighttpd.conf || \
    1.23 +#	  	    -i "$1/etc/lighttpd/lighttpd.conf"
    1.24 +#	  grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
    1.25  #	  	sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
    1.26 -#	  	    -i $1/etc/lighttpd/lighttpd.conf
    1.27 +#	  	    -i "$1/etc/lighttpd/lighttpd.conf"
    1.28  #	fi
    1.29  
    1.30