From 35a82df24c380861b33ccbacc95cb8645db431d1 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart (cherry picked from commit 7b1e8c59fe0edc2faab878c6bd9d45de9f720e81) Signed-off-by: Aleisha Amohia --- 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..7f34bb4736 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/misc 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.39.5