wok-6.x diff smbwebclient/receipt @ rev 1479

madwifi: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 14:46:49 2008 +0000 (2008-10-04)
parents eb4774563943
children e663d0a50e66
line diff
     1.1 --- a/smbwebclient/receipt	Tue Aug 12 14:54:18 2008 +0000
     1.2 +++ b/smbwebclient/receipt	Sat Oct 04 14:46:49 2008 +0000
     1.3 @@ -50,6 +50,27 @@
     1.4  			fi
     1.5  		fi
     1.6  	fi
     1.7 +	# Configure apache server
     1.8 +	if [ -f $1/etc/apache/httpd.conf ]; then
     1.9 +		if [ ! -f $1/etc/apache/conf.d/smbwebclient ]; then
    1.10 +			cat > $1/etc/apache/conf.d/smbwebclient <<EOT
    1.11 +<IfModule mod_alias.c>
    1.12 +    Alias /smbwebclient /usr/share/samba
    1.13 +</IfModule>
    1.14 +<DirectoryMatch /usr/share/samba/>
    1.15 +    DirectoryIndex index.php
    1.16 +    Options +FollowSymLinks
    1.17 +    AllowOverride None
    1.18 +    Order allow,deny
    1.19 +    Allow from all
    1.20 +</DirectoryMatch>
    1.21 +EOT
    1.22 +			if [ -z "$1" ]; then
    1.23 +				# Start Web server.
    1.24 +				/etc/init.d/apache restart
    1.25 +			fi
    1.26 +		fi
    1.27 +	fi
    1.28  	cat <<EOF
    1.29  ---
    1.30  Check \$cfgDefaultServer in configuration file /etc/samba/smbwebclient.conf