[Koha-bugs] [Bug 32791] Log4perl configuration files need a tool for updating on package upgrade

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 13 02:48:07 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32791

--- Comment #14 from David Cook <dcook at prosentient.com.au> ---
Created attachment 146567
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146567&action=edit
Bug 32791: [Alternative] Use "ucf" to manage log4perl.conf

Test plan:
0. Apply patch
1a. ln -s /kohadevbox/koha/debian/scripts/koha-config /usr/sbin/koha-config
1b. koha-config --create-log4perl kohadev
1c. Note that the output looks like a correct log4perl.conf configuration
2. cp debian/koha-common.postinst /var/lib/dpkg/info/koha-common.postinst
3. vi /var/lib/ucf/hashfile
4. Change the first character in the hash for
/etc/koha/sites/kohadev/log4perl.conf to a different letter/number
5. vi /var/lib/ucf/cache/\:etc\:koha\:sites\:kohadev\:log4perl.conf
6. Add a comment to the bottom of the file like "#OLD"
7. vi /etc/koha/sites/kohadev/log4perl.conf
8. Add a commen to the bottom of the file like "#LOCAL"
9. dpkg-reconfigure koha-common
10. Play with the options - especially options 1 and 2 that
install the package version or retain the local version

11. ucfq --verbose /etc/koha/sites/kohadev/log4perl.conf
12. Note output like the following:
Configuration file                            Package             Exists
Changed
/etc/koha/sites/kohadev/log4perl.conf         koha-common         Yes    Yes

NOTE: We need to think about "ucf" and "ucfr" commands for removing Koha
instances,
and removing/purging the Koha package

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list