wok-current diff phpldapadmin/receipt @ rev 1607
Add perl-proc-processtable
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 19 11:13:53 2008 +0000 (2008-10-19) |
parents | 32fa0b9984a6 |
children | bd6010223726 |
line diff
1.1 --- a/phpldapadmin/receipt Wed Aug 27 18:41:39 2008 +0000 1.2 +++ b/phpldapadmin/receipt Sun Oct 19 11:13:53 2008 +0000 1.3 @@ -31,6 +31,11 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phpldapadmin/config.php 1.6 EOT 1.7 + if [ -s $1/etc/openldap/slapd.conf ]; then 1.8 + rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g') 1.9 + sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" $1/etc/phpldapadmin/config.php 1.10 + chown 80.80 $1/etc/phpldapadmin/config.php 1.11 + fi 1.12 # Configure lighttpd server 1.13 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.14 if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then