Bug 25716: Don't exit if config doesn't exist in Koha conf file

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2020-12-03 15:37:40 -05:00 committed by Tomas Cohen Arazi
parent 005d67063f
commit e8b2a5b7b6
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -110,7 +110,7 @@ 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 )"
Z3950_ADDITIONAL_OPTS="$( xmlstarlet sel -t -v 'yazgfs/config/z3950_responder_options' $KOHA_CONF || true )"
log_daemon_msg "Starting Z39.50/SRU daemon for ${instancename}"