projects
/
carnet-upgrade.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle BDB database upgrade.
[carnet-upgrade.git]
/
src
/
functions.sh
diff --git
a/src/functions.sh
b/src/functions.sh
index
95dd0e3
..
1d05d1c
100644
(file)
--- a/
src/functions.sh
+++ b/
src/functions.sh
@@
-892,6
+892,12
@@
upgrade_freeradius () {
# handle openldap upgrade
upgrade_openldap () {
# 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
# aai does not depend on the new openldap version
pkgadd slapd
pkgadd openldap-aai