setenv.sh not compatible with Solaris /bin/sh (uses bash syntax)

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Medium
    • None
    • Affects Version/s: 3.4.3
    • Component/s: Installation
    • Environment:

      Solaris

    • 3.04

      When JIRA 3.4.3 Standalone is started on Solaris, it prints:

      ./catalina.sh: JAVA_OPTS=  -Xms128m -Xmx256m -Djava.awt.headless=true :
      is not an identifier
      

      This is because in bin/setenv.sh JIRA uses the bash syntax for setting a variable, which isn't compatible with vanilla /bin/sh:

      export JAVA_OPTS=" $JAVA_OPTS -Xms128m -Xmx256m -Djava.awt.headless=true "

      To fix, change the line to this:

      JAVA_OPTS=" $JAVA_OPTS -Xms128m -Xmx256m -Djava.awt.headless=true "
      export JAVA_OPTS
      

              Assignee:
              Unassigned
              Reporter:
              Jeff Turner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: