Bug#556388: Problem with cyrus-common-2.2.postinst script

Sven Müller sven at incase.de
Sat Nov 21 22:20:50 UTC 2009


Reinaldo de Carvalho schrieb:

> Exist a problem with command "find /mail/disk1 -print0 ( -not -user cyrus -or
> -not -group mail )", this always return all files. With a 300Gb used
> filesystem will be take 1 hour to run. This downtime is relevant.

This definitely is a long standing issue. And I'm not sure how we should
handle it. The command cyrus-makedirs, which also calls the find you
mentioned is making sure that the directory structure you configured is
actually available and has the right ownerships.

The script is still the same as provided by HMH for older versions of
cyrus-imapd.

Henrique, you probably know this better than anyone else in the
packaging team, so:

Could we skip this script during package upgrades?
If not: Could we tune this script to skip chown'ing during upgrades?

Also: Could the logic in cyrus-commons postinst script bve wrong?
It is currently (in the 2.3 branch):

>         if [ "$2" = "" ] || dpkg --compare-versions "$( echo $2 | cut -d- -f2)" lt "2.3.14" ; then
> 		cyrus-makedirs --cleansquat
> 	fi

However, I think it should be "-f1" instead of "-f2" in the call to cut.
I actually even think we don't need the "--cleansquat" here, even during
upgrade from 2.2, since the format doesn't seem to have changed.

Regards,
Sven





More information about the Pkg-Cyrus-imapd-Debian-devel mailing list