X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Ffunctions.sh;h=1d05d1cb00e1cc92532dc0212e0338125fe7016b;hb=30276562f0891449dad1600bf910810cd3d581f3;hp=95dd0e380bf10df7c20f9faf4618bf300dbfd0ac;hpb=22426cb04f83c7e95d7e05d9e49d9fab23a4c03c;p=carnet-upgrade.git 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