wok-current rev 1427
smbwebclient: update apache conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 28 18:49:06 2008 +0000 (2008-09-28) |
parents | 79d7b34e8525 |
children | a98dc85bb99a |
files | smbwebclient/receipt |
line diff
1.1 --- a/smbwebclient/receipt Sun Sep 28 18:47:03 2008 +0000 1.2 +++ b/smbwebclient/receipt Sun Sep 28 18:49:06 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