solr: ensure users use an absolute path.
Otherwise solr tries to load the given path relative to its home directory in the cellar. Closes Homebrew/homebrew#30584. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
f32f776c01
commit
261c4a38bc
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class Solr < Formula
|
|||
def script; <<-EOS.undent
|
||||
#!/bin/sh
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $ solr path/to/config/dir"
|
||||
echo "Usage: $ solr /absolute/path/to/config/dir"
|
||||
else
|
||||
cd #{libexec}/example && java -server $JAVA_OPTS -Dsolr.solr.home=$1 -jar start.jar
|
||||
fi
|
||||
|
@ -22,7 +22,7 @@ class Solr < Formula
|
|||
|
||||
def caveats; <<-EOS.undent
|
||||
To start solr:
|
||||
solr path/to/solr/config/dir
|
||||
solr /absolute/path/to/solr/config/dir
|
||||
|
||||
See the solr homepage for more setup information:
|
||||
brew home solr
|
||||
|
|
Loading…
Reference in a new issue