Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6993

install_solr_service.sh won't install on RHEL / CentOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.0, 6.0
    • Fix Version/s: 5.0, 6.0
    • Component/s: scripts and tools
    • Labels:
      None
    • Environment:

      RHEL 6.5 / CentOS 6.5

      Description

      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

      Patch is attached. I set this to Major thinking that not being able to install on CentOS is worth fixing prior to release.

        Attachments

        1. SOLR-6993.patch
          0.6 kB
          David Anderson

          Activity

            People

            • Assignee:
              thelabdude Timothy Potter
              Reporter:
              daveanderson42 David Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: