projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df3f46
)
Fix for slapd postinst failure.
author
Valentin Vidic
<vvidic@carnet.hr>
Tue, 25 Mar 2008 16:20:21 +0000
(17:20 +0100)
committer
Valentin Vidic
<vvidic@carnet.hr>
Tue, 25 Mar 2008 16:20:21 +0000
(17:20 +0100)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
ddcb7e0
..
46bb6f6
100644
(file)
--- 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