On 15-10-5 12:13 pm, Craig Butosi wrote:
Hi all,

I'm tinkering with Plack on Koha 3.20.04 (Ubuntu x64 14.04 LTS). I followed the 
(somewhat outdated) instructions here: 
http://www.generalthreat.com/2013/04/serving-koha-common-with-plack/ and made 
sure that my pathways were corrected in the scripts. I'm using the port 5000 
option rather than the unix socket option. After restarting koha-common, I 
received the following output:



/usr/share/koha/misc/plack/opac-plack.sh: 5: /usr/share/koha/misc/plack/opac-plack.sh: Syntax 
error: "&" unexpected

The above looks as if Plack is up and running, but the syntax warning for 
opac-plack.sh is puzzling. I'm not entirely sure whether there is a syntax 
error in the code; everything looks correct, but I could be missing something 
here. Does anyone have any suggestions or advice on how to proceed? I'd love to 
get Plack up and running to see the performance difference. If there's a better 
way to install Plack or configure it for 3.20, I am all ears too!

My opac-plack.sh file is as follows:

#!/bin/sh
# --max-requests = decreased from 1000 to 50 to keep memory usage sane
# --workers = number of cores on machine

test ! -z "$1" && site=$1 && shift

hmm, i think line 5 should be..
 test ! -z "$1" && site=$1 && shift

not...
 test ! -z "$1" && site=$1 && shift



_______________________________________________
Koha mailing list  http://koha-community.org
[email protected]
https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to