Item14505: Localized version of /tools/solrjob gets overwritten with SolrPlugin update

pencil
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Extension
Component: SolrPlugin
Branches:
Reported By: LynnwoodBrown
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary Localized version of /tools/solrjob gets overwritten with SolrPlugin update
ReportedBy LynnwoodBrown
Codebase
SVN Range
AppliesTo Extension
Component SolrPlugin
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 12 Dec 2017, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy