From 30276562f0891449dad1600bf910810cd3d581f3 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 30 Jan 2012 17:28:15 +0100 Subject: [PATCH] Handle BDB database upgrade. --- src/functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/functions.sh b/src/functions.sh index 95dd0e3..1d05d1c 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -892,6 +892,12 @@ upgrade_freeradius () { # handle openldap upgrade upgrade_openldap () { + # aai discovers database type from debconf + if [ -f /etc/ldap/slapd.conf ] && grep -q ^database.*bdb /etc/ldap/slapd.conf + then + echo set slapd/backend BDB | debconf-communicate >/dev/null + fi + # aai does not depend on the new openldap version pkgadd slapd pkgadd openldap-aai -- 1.7.10.4