wok-next diff phpldapadmin/receipt @ rev 1357
Add: BoxBackup automatic on-line backup system
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Tue Sep 09 22:18:22 2008 +0200 (2008-09-09) |
parents | 2b4792182cf0 |
children | 9622723b3408 |
line diff
1.1 --- a/phpldapadmin/receipt Wed Aug 27 08:57:45 2008 +0000 1.2 +++ b/phpldapadmin/receipt Tue Sep 09 22:18:22 2008 +0200 1.3 @@ -31,6 +31,7 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phpldapadmin/config.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/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then 1.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.11 @@ -41,6 +42,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/phpldapadmin ]; then 1.18 + cat > $1/etc/apache/conf.d/phpldapadmin <<EOT 1.19 +<IfModule mod_alias.c> 1.20 + Alias /phpldapadmin /usr/share/phpldapadmin 1.21 +</IfModule> 1.22 +<DirectoryMatch /usr/share/phpldapadmin/> 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 Login DN and password are found in /etc/openldap/slapd.conf with rootdn and rootpw keywords: