wok diff phpmyadmin/receipt @ rev 1914
aircrack-ng : Fix DEPENDS
author | Julien Rabier <taziden@slitaz.org> |
---|---|
date | Mon Dec 22 02:10:04 2008 +0100 (2008-12-22) |
parents | 6bfa3b761dd2 |
children | bd6010223726 |
line diff
1.1 --- a/phpmyadmin/receipt Tue Aug 12 06:27:41 2008 +0000 1.2 +++ b/phpmyadmin/receipt Mon Dec 22 02:10:04 2008 +0100 1.3 @@ -38,6 +38,7 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phpmyadmin/config.inc.php 1.6 EOT 1.7 + # Configure lighttpd server 1.8 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.9 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then 1.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.11 @@ -48,6 +49,28 @@ 1.12 fi 1.13 fi 1.14 fi 1.15 + # Configure apache server 1.16 + if [ -f $1/etc/apache/httpd.conf ]; then 1.17 + if [ ! -f $1/etc/apache/conf.d/phpmyadmin ]; then 1.18 + cat > $1/etc/apache/conf.d/phpmyadmin <<EOT 1.19 +<IfModule mod_alias.c> 1.20 + Alias /phpmyadmin /usr/share/phpmyadmin 1.21 +</IfModule> 1.22 +<DirectoryMatch /usr/share/phpmyadmin/> 1.23 + DirectoryIndex index.php 1.24 + Options +FollowSymLinks 1.25 + AllowOverride None 1.26 + Order allow,deny 1.27 + Allow from all 1.28 +</DirectoryMatch> 1.29 +EOT 1.30 + if [ -z "$1" ]; then 1.31 + # Start Web server. 1.32 + /etc/init.d/apache stop 1.33 + /etc/init.d/apache start 1.34 + fi 1.35 + fi 1.36 + fi 1.37 } 1.38 1.39 repack_cleanup()