From: Valentin Vidic Date: Tue, 25 Mar 2008 16:20:21 +0000 (+0100) Subject: Fix for slapd postinst failure. X-Git-Tag: debian/4.0.1~15 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=9cca6edc89d02bb8820c4cb1b65707c38dab8758;p=carnet-upgrade.git Fix for slapd postinst failure. --- 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