Priority: Low
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Extension
Component: SolrPlugin
Branches:
I have found that line 12 of the
/tools/solrjob
shell script needs to be modified as part of installation to match the actual foswiki installation directory. However, whenever I update the plugin this file gets overwritten and then the real-time updating (via iWatch) doesn't happen until I remember to fix the shell script again.
Here's line 12 of
/tools/solrjob
:
test -z $FOSWIKI_ROOT && FOSWIKI_ROOT=/home/www-data/foswiki/core
Might the conditional fallback here be changed to get the Foswiki root from the parent of the directory where the
solrjob
script resides? In the absence of a more eloquent fix, I would propose simply distributing this file with name
solrjob_default
and include a note in installation about localizing and renaming the file for use with iWatch or cron jobs.
--
LynnwoodBrown - 02 Oct 2017
In the bash script $FOSWIKI_ROOT refers to an environment variable. The test -z only sets it if it's undefined. If you set that variable in the environment before running the script you should not have to edit anything.
export FOSWIKI_ROOT=/var/ww/myroot
tools/solrjob
--
GeorgeClark - 12 Dec 2017