# HG changeset patch # User Pascal Bellard # Date 1237448266 0 # Node ID 7b2884122043c739b1948ceef712d3fedbafdd64 # Parent ecba79c6acee2b305a287a843899d45e53a4efdc nss_ldap: fix post_install diff -r ecba79c6acee -r 7b2884122043 nss_ldap/receipt --- a/nss_ldap/receipt Wed Mar 18 12:35:58 2009 +0100 +++ b/nss_ldap/receipt Thu Mar 19 07:37:46 2009 +0000 @@ -35,9 +35,9 @@ suffix=$(awk '/^suffix/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g') rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g') rootpw=$(awk '/^rootpw/ { print $2 }' < $1/etc/openldap/slapd.conf) - sed -i "s|binddn .*|binddn $rootdn|" \ - -i "s|bindpw .*|bindpw $rootpw|" $1/etc/ldap.conf - sed -i "s|dc=padl,dc=com|$suffix|g" $1/etc/ldap.conf + sed -i -e "s|binddn .*|binddn $rootdn|" \ + -e "s|bindpw .*|bindpw $rootpw|" \ + -e "s|dc=padl,dc=com|$suffix|g" $1/etc/ldap.conf cat <