Koha/debian/scripts
David Cook 89721cb42b Bug 25778: Fix var scope in koha-plack for PERL5LIB and KOHA_HOME
Currently, if a koha-plack is given multiple instances, it will create
duplicate $KOHA_HOME/installer and $KOHA_HOME/installer/lib entries
in PERL5LIB as these changes are done at the global rather than local level.

This issue can only be seen in non-dev Koha, since dev Koha installs
rewrite PERL5LIB.

This patch localizes PERL5LIB to each instance.

To test dev installs:
0. cp debian/scripts/koha-plack /usr/sbin/koha-plack
1. koha-plack --restart kohadev
2. Note that nothing breaks

To test non-dev installs:
0. Don't replace /usr/sbin/koha-plack yet
1. Create multiple non-dev installs with plack enabled and running
2. Set up one of these non-dev installs so you can use the web
UI (that is beyong the scope of this test plan)
3. koha-plack --restart test1 test2 test3
4. For test3, go to /cgi-bin/koha/about.pl
5. Note that there are duplicate /usr/share/koha/installer
and /usr/share/koha/lib/installer entries in PERL5LIB
6. cp debian/scripts/koha-plack /usr/sbin/koha-plack
7. koha-plack --restart test1 test2 test3
8. For test3, go to /cgi-bin/koha/about.pl
9. Note that there are no duplicates entries in PERL5LIB

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-18 15:45:49 +02:00
..
koha-create Bug 24151: Rename the config key with 'bcrypt_settings' 2020-07-20 15:17:42 +02:00
koha-create-dirs Bug 20428: (QA follow-up) Remove redundant directory level 2018-05-14 10:36:39 -03:00
koha-disable Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip 2019-02-11 18:30:10 +00:00
koha-dump Bug 23346: Add without-db-name parameter to koha-dump 2019-10-21 10:02:58 +01:00
koha-dump-defaults Bug 17265 - Make koha-create-defaults less greedy 2017-01-13 11:33:11 +00:00
koha-elasticsearch Bug 23137: Add reset and delete to koha-elasticsearch 2020-04-29 17:02:03 +01:00
koha-email-disable
koha-email-enable
koha-enable
koha-foreach Bug 25634: Warn if koha-shell returns non-zero in koha-foreach 2020-06-12 10:32:30 +02:00
koha-functions.sh Bug 25481: Pass --user to start-stop-daemon when a pidfile is used 2020-05-19 15:04:35 +01:00
koha-indexer Bug 24306: Add debug switch to koha-indexer 2020-08-13 07:55:44 +02:00
koha-list Bug 13937: Add support for Z39.50 responder to the Debian scripts 2019-10-08 14:40:07 +01:00
koha-mysql
koha-mysqlcheck
koha-passwd
koha-plack Bug 25778: Fix var scope in koha-plack for PERL5LIB and KOHA_HOME 2020-08-18 15:45:49 +02:00
koha-rebuild-zebra Bug 20795: Inform the user about this change, add to pod 2018-08-14 12:35:13 +00:00
koha-remove Bug 22128: Removed outdated comment 2019-06-28 14:28:37 +01:00
koha-reset-passwd Bug 17746: (QA follow-up) Make set_password.pl generate a password if required 2019-03-28 11:58:20 +00:00
koha-restore
koha-run-backups
koha-shell Bug 25752: Stay in cwd after koha-shell 2020-07-09 11:50:42 +02:00
koha-sip Bug 24993: fix increment 2020-04-14 08:33:00 +01:00
koha-sitemap Bug 16733: Adjust other debian scripts using PERL5LIB 2017-01-20 14:15:27 +00:00
koha-translate Bug 20116: Fix package install path for clear_cache.pl 2020-05-26 14:43:56 +02:00
koha-upgrade-schema Bug 16749: Add is_instance check to koha-upgrade-schema 2017-02-17 13:20:58 +00:00
koha-upgrade-to-3.4
koha-z3950-responder Bug 25618: Fix wrong package install path for misc dir 2020-05-29 11:44:54 +02:00
koha-zebra Bug 18909: Enable the maximum zebra records size to be specified per instance 2019-01-25 16:14:48 +00:00