You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by th...@apache.org on 2015/01/21 18:04:53 UTC
svn commit: r1653603 - in /lucene/dev/branches/lucene_solr_5_0: ./ solr/
solr/CHANGES.txt solr/bin/ solr/bin/install_solr_service.sh
Author: thelabdude
Date: Wed Jan 21 17:04:53 2015
New Revision: 1653603
URL: http://svn.apache.org/r1653603
Log:
SOLR-6993: install_solr_service.sh won't install on RHEL / CentOS
Modified:
lucene/dev/branches/lucene_solr_5_0/ (props changed)
lucene/dev/branches/lucene_solr_5_0/solr/ (props changed)
lucene/dev/branches/lucene_solr_5_0/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/lucene_solr_5_0/solr/bin/ (props changed)
lucene/dev/branches/lucene_solr_5_0/solr/bin/install_solr_service.sh
Modified: lucene/dev/branches/lucene_solr_5_0/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_0/solr/CHANGES.txt?rev=1653603&r1=1653602&r2=1653603&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_0/solr/CHANGES.txt (original)
+++ lucene/dev/branches/lucene_solr_5_0/solr/CHANGES.txt Wed Jan 21 17:04:53 2015
@@ -443,6 +443,9 @@ Bug Fixes
* SOLR-7004: Add a missing constructor for CollectionAdminRequest.BalanceShardUnique that
sets the collection action. (Anshum Gupta)
+* SOLR-6993: install_solr_service.sh won't install on RHEL / CentOS
+ (David Anderson via Timothy Potter)
+
Optimizations
----------------------
Modified: lucene/dev/branches/lucene_solr_5_0/solr/bin/install_solr_service.sh
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_0/solr/bin/install_solr_service.sh?rev=1653603&r1=1653602&r2=1653603&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_0/solr/bin/install_solr_service.sh (original)
+++ lucene/dev/branches/lucene_solr_5_0/solr/bin/install_solr_service.sh Wed Jan 21 17:04:53 2015
@@ -84,9 +84,9 @@ fi
SOLR_INSTALL_FILE=${SOLR_ARCHIVE##*/}
is_tar=true
if [ ${SOLR_INSTALL_FILE: -4} == ".tgz" ]; then
- SOLR_DIR=${SOLR_INSTALL_FILE:0:-4}
+ SOLR_DIR=${SOLR_INSTALL_FILE%.tgz}
elif [ ${SOLR_INSTALL_FILE: -4} == ".zip" ]; then
- SOLR_DIR=${SOLR_INSTALL_FILE:0:-4}
+ SOLR_DIR=${SOLR_INSTALL_FILE%.zip}
is_tar=false
else
print_usage "Solr installation archive $SOLR_ARCHIVE is invalid, expected a .tgz or .zip file!"