wok diff shell-detector/receipt @ rev 20405

Add littlefs-fuse (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 09 22:25:53 2018 +0200 (2018-07-09)
parents 8cf93f4aedd1
children 8dd8bab3f0ca
line diff
     1.1 --- a/shell-detector/receipt	Sun Mar 09 14:09:57 2014 +0000
     1.2 +++ b/shell-detector/receipt	Mon Jul 09 22:25:53 2018 +0200
     1.3 @@ -32,9 +32,9 @@
     1.4  post_install()
     1.5  {
     1.6  	# Configure lighttpd server
     1.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
     1.8 -		if ! grep -q /usr/share/phpsysinfo/ $1/etc/lighttpd/lighttpd.conf; then
     1.9 -	    		sed -e "s|.*\"/examples/\" => \"/usr/share/examples/\",|    \"/examples/\" => \"/usr/share/examples/\",\\n    \"/$PACKAGE/\" => \"/usr/share/$PACKAGE/\",|g" -i $1/etc/lighttpd/lighttpd.conf
    1.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.11 +		if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.12 +	    		sed -e "s|.*\"/examples/\" => \"/usr/share/examples/\",|    \"/examples/\" => \"/usr/share/examples/\",\\n    \"/$PACKAGE/\" => \"/usr/share/$PACKAGE/\",|g" -i "$1/etc/lighttpd/lighttpd.conf"
    1.13  			if [ -z "$1" ]; then
    1.14  				# Start Web server.
    1.15  				/etc/init.d/lighttpd stop
    1.16 @@ -43,9 +43,9 @@
    1.17  		fi
    1.18  	fi
    1.19  	# Configure apache server
    1.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
    1.21 -		if [ ! -f $1/etc/apache/conf.d/$PACKAGE ]; then
    1.22 -			cat > $1/etc/apache/conf.d/$PACKAGE <<EOT
    1.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.24 +		if [ ! -f "$1/etc/apache/conf.d/$PACKAGE" ]; then
    1.25 +			cat > "$1/etc/apache/conf.d/$PACKAGE" <<EOT
    1.26  <IfModule mod_alias.c>
    1.27      Alias /$PACKAGE /usr/share/$PACKAGE
    1.28  </IfModule>