wok-stable diff phppgadmin/receipt @ rev 1594
gtk-gnutella: use a well known version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 17 13:33:56 2008 +0000 (2008-10-17) |
parents | 2b4792182cf0 |
children | bd6010223726 |
line diff
1.1 --- a/phppgadmin/receipt Wed Aug 27 08:57:45 2008 +0000 1.2 +++ b/phppgadmin/receipt Fri Oct 17 13:33:56 2008 +0000 1.3 @@ -32,6 +32,7 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phppgadmin/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/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then 1.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.11 @@ -42,6 +43,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/phppgadmin ]; then 1.18 + cat > $1/etc/apache/conf.d/phppgadmin <<EOT 1.19 +<IfModule mod_alias.c> 1.20 + Alias /phppgadmin /usr/share/phppgadmin 1.21 +</IfModule> 1.22 +<DirectoryMatch /usr/share/phppgadmin/> 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 cat << EOT 1.38 ------ 1.39 User 'postgres' can login on localhost without passwd after: