From 9cca6edc89d02bb8820c4cb1b65707c38dab8758 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 25 Mar 2008 17:20:21 +0100 Subject: [PATCH] Fix for slapd postinst failure. --- src/functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/functions.sh b/src/functions.sh index ddcb7e0..46bb6f6 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -650,7 +650,10 @@ upgrade_amavis () { # fix openldap-aai postinst user handling upgrade_openldap () { - #pkgrm openldap-cn # deprecated + # slapd postinst fails if this is false + echo 'slapd slapd/move_old_database boolean true' | debconf-set-selections + + # workaround for race condition in openldap-aai postinst apt-get -y$s install openldap-aai || true # postinst fails chown -R openldap:openldap /var/lib/ldap # fix slapd /etc/init.d/slapd restart -- 1.7.10.4