[Pkg-roundcube-maintainers] roundcube update script

Sandro Knauß bugs at sandroknauss.de
Tue Mar 17 00:48:34 UTC 2015


Hey,

> Since you are not familiar with config file handling, the difficulty is
> (I think, not sure, maybe it will just work) to let ucf thinks that an
> unmodified configuration file migrated with the script is unmodified. I
> suppose this means that we need to ship a migrated version of the
> configuration file we shipped until this point.

I hacked today another round and fixed the update script (have a look at the 
dev/hefee branch), so that it do not overwrite any existing files etc. The 
postinst is already roughly updated (but not tested).

The outcome is a /etc/roundcube/config.inc.php.dpkg-new file that needs to be 
tracked and moved by ucf to /etc/roundcube/config.inc.php.

But for sure I can't execute this in preinst,because the update script needs 
parts of roundcube (program/include/iniset.php) Together with ucf --purge it 
should be possible to perform the update :) 

And please keep in mind. roundcume config changed from main.inc+db.inc (old) -
> config.inc (new)

so we have a clear new name and the old one need to be backedup.

Do you know any documentation about how to run the postinst scripts by hand ( 
to test it would be easier till i have something running :) A fast search did 
not get my the resulsts i need - Or ist is really that simple that 
preinst/postinst is simply called with parameter 1 "configure" and parameter 2 
the old version?

Regards,

sandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-roundcube-maintainers/attachments/20150317/114c706f/attachment.sig>


More information about the Pkg-roundcube-maintainers mailing list