Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13591

Add 3 ways merge support for configuration files during upgrade of Debian packages

    XMLWordPrintable

Details

    • Unknown
    • N/A

    Description

      It's possible to bypass standard dpkg confile handling and replace it with other tools called in postinst.

      cme and Config::Model

      See https://ddumont.wordpress.com/2014/03/23/easier-lcdproc-package-upgrade-with-automatic-configuration-merge/ and https://wiki.debian.org/PackageConfigUpgrade.

      ucf

      The good thing about ucf is that it has support for 3 ways merge which would be nice for at least xwiki.cfg and xwiki.properties.

      See documentation at http://man.he.net/man1/ucf. Also see http://anonscm.debian.org/cgit/collab-maint/foomatic-filters.git/tree/debian/foomatic-filters.postinst for an example of how to use it.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: