koha-conf.xml files for instances created with the Debian packages are never updated/upgraded when the packages are updated. This results in lots of missing stuff in the config files over time. This seems to be the root of the problems I have reported in bug 12577. As an example an old instance has 21 lines i the <config> section, while a fresh instance has 30. Perhaps there could be a script that can - read an existing koha-conf.xml (and back it up) - generate a new file with the old values + placeholders or default values (or interactive questions?) for any missing values
*** Bug 12577 has been marked as a duplicate of this bug. ***
The difficulty is knowing if things were added in a new version, pruned from the current version, or manually added to configure a particular feature.
Here's a quick and dirty script to update instances one by one, based on template config files. It might work for you if your configs are more or less identical except for instance names and passwords, and not full of per-instance tweaks: https://github.com/MagnusEnger/fix-koha-conf/ Please read the README (and the code) carefully before trying this!
(In reply to M. Tompsett from comment #2) > The difficulty is knowing if things were added in a new version, pruned from > the current version, or manually added to configure a particular feature. That's an example of why we should use the about page. W need to tell users to check there for info on possible problems.
Is there not a debconf option we can use here.. I suppose because it's a per instance thing that may be challenging..
Had it result been that long I've been out of the loop.. Did we ever f in nd the right deacons option.. Wondering if lars can point us in the right direction if this isn't already fixed?
(In reply to Martin Renvoize from comment #6) > Had it result been that long I've been out of the loop.. Did we ever f in nd > the right deacons option.. Wondering if lars can point us in the right > direction if this isn't already fixed? I'm working on a rewrite of the instance handling code, that will move this to another file. We could discuss this on a dev meeting, or in Marseille. Better earlier.
Here is another example. The <server> part of koha-conf.xml got drastically simplified by bug 9612 (in 2014): http://git.koha-community.org/gitweb/?p=koha.git;a=blobdiff;f=etc/koha-conf.xml;h=26f53b729d11936e2f5488c5dfb13ca043540856;hp=72da2de9f8db9c279f72f917b7e4f414248fe094;hb=67abcc64433ba945416c7c8e8bf8aecc8c932f14;hpb=036f2a50e11dab97ef8509f2f585c4cc407ea728 But this was never carried over to debian/templates/koha-conf-site.xml.in: http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=debian/templates/koha-conf-site.xml.in;h=7f13c6411530615fbe7867b2ccc71ef97bd728c9;hb=HEAD
*** This bug has been marked as a duplicate of bug 22857 ***