[csw-maintainers] Migrating config files from /opt/csw/etc to /etc/opt/csw during package update

Dagobert Michelsen dam at opencsw.org
Tue Oct 27 10:28:33 CET 2009


Hi Maciej,

Am 19.10.2009 um 01:39 schrieb Maciej (Matchek) Blizinski:
> I've written the first version of cswmigrateconf, a class utility
> script which migrates configuration files from /opt/csw/etc to
> /etc/opt/csw. It works the way Sebastian has suggested, i.e.: It makes
> an intermediate copy in /opt/csw/etc/migration-archive, and then uses
> it as a source to populate /etc/opt/csw.

This is very useful. Thanks! I guess I'll update all my packages
needing migration with this. With this kind of tools packaging is
fun :-)

In addition to migrating single files is there the possibility to  
migrate
complete directories? Like
   /opt/csw/var/postgresql/  to  /var/opt/csw/posgresql/ ?


Best regards

   -- Dago



More information about the maintainers mailing list