[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] debian-edu-config.postinst: Don't run LDAP data base conversion inside d-i

Wolfgang Schweer (@schweer-guest) gitlab at salsa.debian.org
Thu Sep 30 10:20:14 BST 2021



Wolfgang Schweer pushed to branch master at Debian Edu / debian-edu-config


Commits:
558bcf51 by Wolfgang Schweer at 2021-09-30T11:18:45+02:00
debian-edu-config.postinst: Don't run LDAP data base conversion inside d-i

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -22,6 +22,7 @@ debian-edu-config (2.12.4) UNRELEASED; urgency=medium
     - Whitespace cleanup.
   * debian/debian-edu-config.postrm: Remove cruft.
   * debian/debian-edu-config.lintian-overrides: Cleanup, thanks lintian.
+  * debian-edu-config.postinst: Don't run LDAP data base conversion inside d-i. 
 
  -- Wolfgang Schweer <wschweer at arcor.de>  Tue, 28 Sep 2021 12:45:57 +0200
 


=====================================
debian/debian-edu-config.postinst
=====================================
@@ -255,7 +255,7 @@ configure)
 	fi
 	# Move LDAP BDB data base to default MDB one.
 	if dpkg --compare-versions "$2" le "2.12.1" && grep -q Main-Server /etc/debian-edu/config && \
-		[ ! -f /var/lib/ldap/data.mdb ] ; then
+		[ ! -f /var/lib/ldap/data.mdb ] && ! running_from_di ; then
 		TMPDIR=$(mktemp -d)
 		slapcat > $TMPDIR/all.ldif
 		service slapd stop



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/558bcf513b76e97143e7af11eb2d0aa57c905f54

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/558bcf513b76e97143e7af11eb2d0aa57c905f54
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20210930/81453877/attachment.htm>


More information about the debian-edu-commits mailing list