Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-494

knox-env.sh script should exit with proper error message , if JAVA is not set.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • None
    • None

    Description

      knox-env.sh script does not exit when JAVA is not set .

      Hence execution of other script (which invokes knox-env.sh to set JAVA) in an environment which does not contains JAVA , continues with execution and logs non-user friendly messages as below

      Execution of gateway.sh:
      
      nohup: invalid option -- 'j'
      Try `nohup --help' for more information.
      
      Execution of knoxcli.sh :
      
      ./knoxcli.sh: line 61: -jar: command not found
      

      Attachments

        1. KNOX-494.1.patch
          0.7 kB
          J.Andreina
        2. KNOX-494.2.patch
          0.7 kB
          J.Andreina

        Activity

          People

            andreina J.Andreina
            andreina J.Andreina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: