wok diff php/receipt @ rev 20354
Up e2fsprogs (1.44.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 09 16:13:52 2018 +0200 (2018-06-09) |
parents | 1a1b4f47c3d1 |
children | ccb0caebef6f |
line diff
1.1 --- a/php/receipt Tue Jun 03 00:56:41 2014 +0200 1.2 +++ b/php/receipt Sat Jun 09 16:13:52 2018 +0200 1.3 @@ -127,19 +127,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 # Start Web server. 1.30 if [ -z "$1" -a ! -f /var/run/lighttpd.pid \