mirror of https://github.com/apache/lucene.git
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:
parent
aebec2a0f8
commit
eb23901230
|
@ -512,6 +512,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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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!"
|
||||
|
|
Loading…
Reference in New Issue