From 386696835ae194a6132d056542b931dafd894e8d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 May 2020 15:30:02 +0200 Subject: [PATCH] Bug 25618: Fix wrong package install path for misc dir root@koha-debian9:/# koha-z3950-responder --start d9 [....] Starting Z39.50/SRU daemon for d9:Can't open perl script "/usr/share/koha/bin/z3950_responder.pl/z3950_responder.pl": Not a directory failed! Test plan: On a dev install, copy the debian script and run it Same on a package install --- debian/scripts/koha-z3950-responder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/scripts/koha-z3950-responder b/debian/scripts/koha-z3950-responder index b364acd78e..329840cb3b 100755 --- a/debian/scripts/koha-z3950-responder +++ b/debian/scripts/koha-z3950-responder @@ -86,12 +86,12 @@ start_z3950() logging="-l /var/log/koha/${instancename}/z3950.log" if [ "$DEV_INSTALL" = "1" ]; then - LIBDIR=$KOHA_HOME + MISCDIR=$KOHA_HOME else - LIBDIR=$KOHA_HOME/lib + MISCDIR=/usr/share/koha/bin fi - Z3950RESPONDER="/usr/bin/perl $LIBDIR/misc/z3950_responder.pl" + Z3950RESPONDER="/usr/bin/perl $MISCDIR/z3950_responder.pl" if [ "$debug_mode" = "yes" ]; then if [ "$DEV_INSTALL" = "1" ]; then warn "Not a dev install, disabling debug mode" @@ -99,7 +99,7 @@ start_z3950() environment="development" daemonize="" logging="" # remote debugger takes care - Z3950RESPONDER="/usr/bin/perl -d ${LIBDIR}/misc/z3950_responder.pl" + Z3950RESPONDER="/usr/bin/perl -d ${MISCDIR}/z3950_responder.pl" fi fi -- 2.20.1