Koha-clms/debian/scripts
Marcel de Rooy 55c57af5b6
Bug 39740: Adjust koha-plack and koha-z3950-responder
Changes to koha-plack
- Check is_test_system and -development for stack trace
- Add check on set $environment for debugger
- Move export to do_instance, remove three local's

NOTE: GIT_INSTALL ie exported for koha-plack ONLY! The debian
scripts call is_git_install.

Changes to koha-z3950-responder
- debugger needs test_system flag
- Rearrange exports before calling start_z3950 and friends.

Test plan:
Check/adjust git_install and test_system in koha-conf.xml for used
instances.
cp debian/scripts/koha-functions.sh /usr/share/koha/bin/
cp debian/scripts/koha-* /usr/sbin/
cp debian/templates/plack.psgi /etc/koha/plack.psgi
Add a die in e.g. opac/opac-main.pl.
Set test_system to 1 in koha-conf.xml or export TEST_SYSTEM=1 in your environment.
Restart Plack.
Hit opac-main. Do you see a stack trace?
Export TEST_SYSTEM=0. Restart Plack.
Hit opac-main again. You should not see a stack trace.

Start koha-z3950-responder with/without debug flag. Works as expected?

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-09-18 13:51:52 -06:00
..
koha-create Bug 39961: Make `koha-create` start all queues 2025-06-06 09:41:19 -06:00
koha-create-dirs
…
koha-disable Bug 39961: (follow-up) Make `koha-disable` stop all queues 2025-06-06 09:41:19 -06:00
koha-dump Bug 38173: Fix description of koha-dump --exclude-indexes 2024-10-23 19:14:57 +02:00
koha-dump-defaults
…
koha-elasticsearch Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-email-disable
…
koha-email-enable
…
koha-enable
…
koha-es-indexer Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-foreach Bug 34653: Make koha-foreach return the correct status code 2023-09-25 10:56:40 -03:00
koha-functions.sh Bug 39740: Rename function to adjust_paths_git_install 2025-09-18 13:51:49 -06:00
koha-indexer Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-list Bug 38249: Fix typo in koha-list --help 2024-10-24 13:38:11 +02:00
koha-mysql Bug 38760: Add support for database connection encryption parameters in koha-mysql 2025-04-22 08:46:34 +02:00
koha-mysqlcheck
…
koha-passwd Bug 28493: Make koha-passwd display the username 2023-07-19 13:00:41 -03:00
koha-plack Bug 39740: Adjust koha-plack and koha-z3950-responder 2025-09-18 13:51:52 -06:00
koha-rebuild-zebra Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-remove Bug 31124: Make koha-remove stop all workers 2025-06-06 09:41:18 -06:00
koha-reset-passwd Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-restore
…
koha-run-backups Bug 14565: Allow koha-run-backups to backup an instance called `demo` 2024-06-28 13:49:22 +02:00
koha-shell Bug 39740: Fix a few occurrences of dev_install in code 2025-09-18 13:51:51 -06:00
koha-sip Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-sitemap Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-translate Bug 39740: Rename function to adjust_paths_git_install 2025-09-18 13:51:49 -06:00
koha-upgrade-schema Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-upgrade-to-3.4
…
koha-worker Bug 39740: Replace envvar check by calling is_git_install on instance level 2025-09-18 13:51:51 -06:00
koha-z3950-responder Bug 39740: Adjust koha-plack and koha-z3950-responder 2025-09-18 13:51:52 -06:00
koha-zebra Bug 27291: Reformat Zebra output logs 2024-03-22 10:35:25 +01:00