Koha/debian
Tomas Cohen Arazi 70aee86791
Bug 24905: Make installer update log4perl.conf for instances
This patch makes koha-common.postinst check if the log4perl.conf files
on the instances need tweaking. If they do, it appends the relevant
configuration text.

To test:
1. Install Koha 19.11 or earlier using the packages
2. Create an instance:
   $ koha-create --create-db test1
   $ koha-create --create-db test2
=> FAIL: /etc/koha/sites/test1/log4perl.conf doesn't include an entry for
z39.50
3. Apply this patch and run:
   $ docker run \
      --volume=/path/to/your/clone:/koha \
      --volume=/dest/path/for/debs:/debs \
      --privileged
      --env VERSION=19.12.00.047 \
      koha/koha-dpkg:master
Note: Paths need to be adjusted
4. Grab the .deb files and put them on the machine you're testing this
5. Edit /etc/koha/sites/test2/log4perl.conf and add the following text
   at the bottom: log4perl.logger.z3950
6. Install the debs:
   $ sudo dpkg -i koha-perldeps koha-deps koha-common
=> SUCCESS: Install process doesn't explode due to the addition
=> SUCCESS: /etc/koha/sites/test1/log4perl.conf has a new entry for log4perl.logger.z3950
=> SUCCESS: /etc/koha/sites/test2/log4perl.conf doesn't have a new entry for log4perl.logger.z3950
7. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-27 08:38:03 +00:00
..
docs Bug 24340: allow koha-sip --disable inst 2020-02-12 16:09:35 +00:00
scripts Bug 17532: Make koha-shell propagate the error code 2020-03-03 09:15:57 +00:00
source
templates Bug 24905: Add missing entry in log4perl-site.conf.in 2020-03-27 08:37:57 +00:00
bd-to-depends
build-git-snapshot
changelog
compat
control Bug 24588: (RM follow-up) Update debian/control 2020-02-21 17:13:17 +00:00
control.in
copyright Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
koha-common.bash-completion
koha-common.config
koha-common.cron.d
koha-common.cron.daily Bug 24526: Add the confirm flag to the cronjob files 2020-02-10 10:13:35 +00:00
koha-common.cron.hourly
koha-common.cron.monthly
koha-common.default
koha-common.dirs
koha-common.docs
koha-common.init
koha-common.install
koha-common.links
koha-common.logrotate
koha-common.postinst Bug 24905: Make installer update log4perl.conf for instances 2020-03-27 08:38:03 +00:00
koha-common.preinst
koha-common.README.Debian
koha-common.templates
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps Bug 19735: Move Perl deps definitions into a cpanfile 2020-02-12 16:33:02 +00:00
README.build
rules
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.