Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the $JAVA_INSTALL/bin/config.sh file after installing with .bin

admin admin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2019

Running this utility provides the following;

./config.sh
No JRE_HOME or JAVA_HOME environment variable is set - attempting to just run java command
./check-java.sh: line 34: [: -ne: unary operator expected
./config.sh: line 41: java: command not found

From what I know, Jira SHOULD be installing a version of Java such that this should not occur, but PRESUMABLY is not making that publicly available;

To resolve this I need to set an environment variable, but without knowing where/how the Java resources are implemented with Jira (and I have looked), I am uncertain how to make this utility usable;

JAVA_HOME=

1 answer

0 votes
Moses Thomas
Community Champion
May 9, 2019

@admin admin  What do  you hope  to  achieve ? why  do  you want  to  run  this script ? are you having  a  problem  with JRE_HOME or JAVA_HOME  ?

admin admin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2019

One of the reasons is I am looking for automated ways to set my server up for delivery;

- This command sets the home directory for instance;

echo "\njira.home=$APP_HOME" > "$APP_INSTALL"/atlassian-jira/WEB-INF/classes/jira-application.properties

BUT 'echo' is quite inconsistent between distros and versions, so avoiding use of external applications provides a more consistent resolution.

- And a sed command can be used to modify the components set in $JIRA_HOME/dbconfig.xml, but the same vulnerability is evident there.

My purpose in the request, was to ask for a method to provide consistent/accurate and globally understandable configuration on the Jira server; Essentially to keep my server(s) from becoming pets, such that they can be configured by anyone with adequate knowledge of the task at hand.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events