From 8d5cbcadd55f15ee37e58df4e1ebf5522f690db0 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Mon, 24 Oct 2022 10:58:59 -0400 Subject: [PATCH] Bug 25716: (QA follow-up) Move additional options to etc/z3950/config.xml This followup moves the configuration to the z3950 etc file, either the default and or the custom file is used as per the existing script code. In addition, the options and be set using an environment variable named Z3950_ADDITIONAL_OPTS. Signed-off-by: Tomas Cohen Arazi --- debian/scripts/koha-z3950-responder | 4 +++- etc/koha-conf.xml | 5 ----- etc/z3950/config.xml | 5 +++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/debian/scripts/koha-z3950-responder b/debian/scripts/koha-z3950-responder index 0f5dea3782..d8ac7e3526 100755 --- a/debian/scripts/koha-z3950-responder +++ b/debian/scripts/koha-z3950-responder @@ -110,7 +110,9 @@ start_z3950() if ! is_z3950_running ${instancename}; then export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml" - Z3950_ADDITIONAL_OPTS="$( xmlstarlet sel -t -v 'yazgfs/config/z3950_responder_options' $KOHA_CONF || true )" + if [[ ! $Z3950_ADDITIONAL_OPTS ]]; then + Z3950_ADDITIONAL_OPTS="$( xmlstarlet sel -t -v 'yazgfs/config/z3950_responder_options' "$CONFIGDIR/config.xml" || true )" + fi log_daemon_msg "Starting Z39.50/SRU daemon for ${instancename}" diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index 69f8acb05d..3e5623cb96 100644 --- a/etc/koha-conf.xml +++ b/etc/koha-conf.xml @@ -281,10 +281,5 @@ KohaOpacLanguage --> - - - diff --git a/etc/z3950/config.xml b/etc/z3950/config.xml index 7433851f8b..ceae0a9c6f 100644 --- a/etc/z3950/config.xml +++ b/etc/z3950/config.xml @@ -1,4 +1,9 @@ + + + tcp:@:2100 pqf.properties -- 2.39.5