http://qa.mandrakesoft.com/show_bug.cgi?id=2411





------- Additional Comments From [EMAIL PROTECTED]  2003-02-26 14:32 -------
So putting this in %post should take care of the conversion (btw, according to
the spec file for sasl v1, the sasl db should be in /var/lib/sasl/sasl.db or
/var/lib/sasl/sasl.db.rpmsave, not /var/lib/sasl.db.rpmsave):

%post
#convert old sasldb
if [ -f /var/lib/sasl/sasl.db -a ! -f /var/lib/sasl2/sasl.db ]; then
   echo "" | /usr/sbin/dbconverter-2 /var/lib/sasl/sasl.db /var/lib/sasl2/sasl.db
fi
if [ -f /var/lib/sasl/sasl.db.rpmsave -a ! -f /var/lib/sasl2/sasl.db ]; then
   echo "" | /usr/sbin/dbconverter-2 /var/lib/sasl/sasl.db.rpmsave
/var/lib/sasl2/sasl.db
fi

This is untested but should work, and I plan to put this in my RPMs for version
2.1.12




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: NEW
creation_date: 
description: 
I updated from cyrus v1 to cyrus v2.  During the ugrade, the existing sasl.db
hasn't been upgraded to v2 with dbconverter-2 and it has been renamed to
/var/lib/sasl.db.rpmsave.

I'd expect the upgrade to also upgrade an existing sasl.db.

As said, dbconverter-2 needs to be run.  But that's impossible because of bug #2410.

Reply via email to