Koha-clms/debian/scripts
David Cook bbc0124ede
Bug 43159: Restore localisation of PERL5LIB and KOHA_HOME
This change localises PERL5LIB and KOHA_HOME,
which means that any changes made to PERL5LIB or KOHA_HOME
within _do_instance() in koha-plack are confined to the specific
instance being worked on in that function.

See Bugzilla for steps on how to reproduce the problem.

Test plan:
- Apply the patch
- sudo vi debian/scripts/koha-plack

Within _do_instance after PERL5LIB is set, add the following:
echo $PERL5LIB

- sudo koha-create --request-db test1
- sudo ./debian/scripts/koha-plack --restart test1 test1 test1 test1
- Note that now PERL5LIB stays constant:

/usr/share/koha/lib:/usr/share/koha/installer:/usr/share/koha/lib/installer

- git restore debian/scripts/koha-plack

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-31 13:40:33 +00:00
..
koha-create Bug 42861: System warning about missing encryption_key on a fresh instance 2026-07-27 12:13:01 +00:00
koha-create-dirs
…
koha-disable Bug 32736: (follow-up) Make scripts using koha-worker use --all-queues 2026-01-12 10:26:06 -07:00
koha-dump Bug 41353: koha-dump failing on mysqldump PROCESS privileges 2026-04-23 09:24:58 -06:00
koha-dump-defaults
…
koha-elasticsearch Bug 36550: allow defaults to be defined for koha-elasticsearch 2026-04-15 11:37:17 -06:00
koha-email-disable
…
koha-email-enable
…
koha-enable
…
koha-es-indexer Bug 40890: Move fetching of batch size to within the instance loop 2025-11-07 10:54:17 -07:00
koha-foreach
…
koha-functions.sh Bug 42366: Fix debug_mode test for koha-conf.xml 2026-04-28 15:48:12 -06:00
koha-indexer
…
koha-list
…
koha-mysql
…
koha-mysqlcheck
…
koha-passwd
…
koha-plack Bug 43159: Restore localisation of PERL5LIB and KOHA_HOME 2026-07-31 13:40:33 +00:00
koha-rebuild-zebra
…
koha-remove Bug 32736: (follow-up) Make scripts using koha-worker use --all-queues 2026-01-12 10:26:06 -07:00
koha-reset-passwd
…
koha-restore
…
koha-run-backups
…
koha-shell
…
koha-sip Bug 27115: Use start-stop-daemon to stop in koha-sip 2026-01-16 14:07:15 -07:00
koha-sitemap
…
koha-translate
…
koha-upgrade-schema
…
koha-upgrade-to-3.4
…
koha-worker Bug 32736: Add --all-queues switch to koha-worker 2026-01-12 10:26:06 -07:00
koha-z3950-responder
…
koha-zebra
…