Thanks Erick - I created SOLR-6993 for this and attached a patch. It's pretty low risk, would be nice to fit this into the 5.0 release so the install script isn't totally busted for CentOS :-)
On Sat, Jan 17, 2015 at 6:44 PM, Erick Erickson <[email protected]> wrote: > David: > > It's _always_ OK to make a patch, create a JIRA and attach. > You can't commit to the source tree though, one of the committers > will have to pick it up. > > Discussing it on the user's (or dev) list ahead of time is fine too, > whatever you find most convenient. > > Best > Erick > > On Sat, Jan 17, 2015 at 3:28 PM, David Anderson <[email protected]> > wrote: > > There's a bug that will prevent install_solr_service.sh from working on > RHEL > > / CentOS 6.5. It works on Ubuntu 14. Appears to be some obscure > difference > > in bash expression evaluation behavior. > > > > line 87 and 89: SOLR_DIR=${SOLR_INSTALL_FILE:0:-4} > > > > blows up with this error: > > > > ./install_solr_service.sh: line 87: -4: substring expression < 0 > > > > this results in the archive not being extracted and rest of the script > won't > > work. > > > > I tested a simple change: > > SOLR_DIR=${SOLR_INSTALL_FILE%.tgz} > > and verified it works on both RHEL 6.5 and Ubuntu 14 > > > > I'm happy to create a Jira and submit a patch. Never made a commit to > solr > > so just wanted to post up here before moving forward on the Jira and > patch. > > > > FYI - I also verified that even on a freshly installed RHEL 6.5 AWS AMI > that > > it's broken. > > > > Thanks, > > - Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
