Re: [debian-openldap] Re: Bug#185178: marked as done (slapd: inkompatible to previous openldapd package)
On Sun, Mar 23, 2003 at 03:51:39PM +0100, Turbo Fredriksson wrote:
> Quoting Stephen Frost <email@example.com>:
> > I do think the right way to go is dump in preinst, install and then
> > attempt to restore (maybe asking the user if they want to or not)..
> I find this a viable and correct procedure, I support this.
I lost my mail archive due to another failing disk. Anyway, I want to
comment on this.
I don't think it is a good idea to always dump the directory. It is not
even needed nor helpful. The new package can read the old database just
fine. It just refuses to do so if it is not correctly configured.
Essentially the preinst should do the following:
- Check the old debconf configuration and compare to the directory
contents, offering the admin to fix the stuff caused by the old Debian
- Optionally dump the old directory (user configurable). Question is
where to dump - /var/backups?! This would be just an additional backup
since the directory should survive the upgrade just fine.
Only question left: Why does OpenLDAP 2.1 refuse to read and database
which does not follow the rules? I think there must be a switch
somewhere to support that. Guess I'll ask upstream about it.