From d55be54bf93a6e2e276384059fbffd65946ccd2d Mon Sep 17 00:00:00 2001 From: Alexander Kirk Date: Tue, 1 Jul 2014 09:48:01 +0200 Subject: solr: ensure users use an absolute path. Otherwise solr tries to load the given path relative to its home directory in the cellar. Closes #30584. Signed-off-by: Mike McQuaid --- Library/Formula/solr.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Formula/solr.rb b/Library/Formula/solr.rb index 6dbceefd7..ff381d694 100644 --- a/Library/Formula/solr.rb +++ b/Library/Formula/solr.rb @@ -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 -- cgit v1.2.3