wok-next diff squirrelmail/receipt @ rev 1535
udev: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 09 19:36:57 2008 +0000 (2008-10-09) |
parents | ce9ca92103e0 |
children | ff7fba94d312 |
line diff
1.1 --- a/squirrelmail/receipt Sun Aug 10 09:59:02 2008 +0000 1.2 +++ b/squirrelmail/receipt Thu Oct 09 19:36:57 2008 +0000 1.3 @@ -64,6 +64,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/squirrelmail ]; then 1.10 + cat > $1/etc/apache/conf.d/squirrelmail <<EOT 1.11 +<IfModule mod_alias.c> 1.12 + Alias /squirrelmail /usr/share/squirrelmail 1.13 +</IfModule> 1.14 +<DirectoryMatch /usr/share/squirrelmail/> 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 } 1.29 1.30 repack_cleanup()