SOLR-6993: install_solr_service.sh won't install on RHEL / CentOS

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1653601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy Potter 2015-01-21 17:02:36 +00:00
parent aebec2a0f8
commit eb23901230
2 changed files with 5 additions and 2 deletions

View File

@ -512,6 +512,9 @@ Bug Fixes
* SOLR-7004: Add a missing constructor for CollectionAdminRequest.BalanceShardUnique that * SOLR-7004: Add a missing constructor for CollectionAdminRequest.BalanceShardUnique that
sets the collection action. (Anshum Gupta) sets the collection action. (Anshum Gupta)
* SOLR-6993: install_solr_service.sh won't install on RHEL / CentOS
(David Anderson via Timothy Potter)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -84,9 +84,9 @@ fi
SOLR_INSTALL_FILE=${SOLR_ARCHIVE##*/} SOLR_INSTALL_FILE=${SOLR_ARCHIVE##*/}
is_tar=true is_tar=true
if [ ${SOLR_INSTALL_FILE: -4} == ".tgz" ]; then 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 elif [ ${SOLR_INSTALL_FILE: -4} == ".zip" ]; then
SOLR_DIR=${SOLR_INSTALL_FILE:0:-4} SOLR_DIR=${SOLR_INSTALL_FILE%.zip}
is_tar=false is_tar=false
else else
print_usage "Solr installation archive $SOLR_ARCHIVE is invalid, expected a .tgz or .zip file!" print_usage "Solr installation archive $SOLR_ARCHIVE is invalid, expected a .tgz or .zip file!"