wok diff php-apache/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 55f67249b264 |
children | ccb0caebef6f |
line diff
1.1 --- a/php-apache/receipt Tue Jun 03 01:07:29 2014 +0200 1.2 +++ b/php-apache/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -30,14 +30,14 @@ 1.4 1.5 post_install() 1.6 { 1.7 - grep -q php5_module $1/etc/apache/httpd.conf || { 1.8 + grep -q php5_module "$1/etc/apache/httpd.conf" || { 1.9 sed -e 's|mod_rewrite.so|mod_rewrite.so\nLoadModule php5_module share/apache/modules/libphp5.so|' \ 1.10 -e 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' \ 1.11 -e 's|mime.types|mime.types\n AddType application/x-httpd-php .php .php3 .php4 .php5\n AddType application/x-httpd-php-source .phps|' \ 1.12 - -i $1/etc/apache/httpd.conf 1.13 + -i "$1/etc/apache/httpd.conf" 1.14 } 1.15 - [ -f $1/etc/apache/conf.d/phpinfo ] || \ 1.16 - cat > $1/etc/apache/conf.d/phpinfo <<EOT 1.17 + [ -f "$1/etc/apache/conf.d/phpinfo" ] || \ 1.18 + cat > "$1/etc/apache/conf.d/phpinfo" <<EOT 1.19 <IfModule mod_alias.c> 1.20 Alias /phpinfo /usr/share/phpinfo 1.21 </IfModule>