From cb1ba6e2833a6b3a8a93d22a954f8519aa6866e9 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 9 Apr 2024 01:19:23 +0000 Subject: [PATCH] Bug 36548: koha-zebra should fix ownership on /var/run/koha/instancename files This patch ensures the /var/run/koha/instancename/* files are owned by instancename-koha so zebra can start and stop as expected. Note: /var/run/koha/instancename/z3950-responder.pid must be owned by root:root but the rest should be owned by instancename-koha To test, confirm that: 1. starting and stopping zebra using `koha-zebra` works as expected 2. all files in /var/run/koha/instancename/ are owned by instancename-koha Sponsored-by: Catalyst IT --- debian/scripts/koha-zebra | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/scripts/koha-zebra b/debian/scripts/koha-zebra index 228b8c8ca20..45a8a71f9f5 100755 --- a/debian/scripts/koha-zebra +++ b/debian/scripts/koha-zebra @@ -174,7 +174,10 @@ _check_and_fix_perms() local name=$1 local files="/var/log/koha/${name}/zebra-output.log \ - /var/log/koha/${name}/zebra-error.log" + /var/log/koha/${name}/zebra-error.log \ + /var/run/koha/${name}/${name}*pid \ + /var/run/koha/${name}/*socket \ + /var/run/koha/${name}/plack*" for file in ${files} do -- 2.39.5