Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-763

Incorrect path to OODT_HOME and FILEMGR_HOME in query_tool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7
    • 0.8
    • file manager
    • Windows 8.1 64-bit

    • Newcomer (Easy) - Everyone can do this

    Description

      The query_tool script in File Manager component has the path to OODT_HOME and FILEMGR_HOME incorrectly setup.

      Following is the error that results-

      $:/usr/local/oodt/filemgr/bin$ ./query-tool
      ./query-tool: 73: cd: can't cd to /usr/local/components/filemgr/bin

      In query_tool-

      1. Only set OODT_HOME if not already set
        [ -z "$OODT_HOME" ] && OODT_HOME=`cd "$PRGDIR/../../.." ; pwd`

      the path should be
      OODT_HOME=`cd "$PRGDIR/../.." ; pwd`

      and in,

      1. Only set FILEMGR_HOME if not already set
        if [ -z "$FILEMGR_HOME" ]; then
        FILEMGR_HOME="$OODT_HOME"/components/filemgr
        export FILEMGR_HOME
        fi

      the path should be FILEMGR_HOME="$OODT_HOME"/filemgr

      As discussed with Chris Mattmann, I'm sending a pull-request for this fix.

      Attachments

        Issue Links

          Activity

            People

              chrismattmann Chris A. Mattmann
              vishalhemnani Vishal Hemnani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified