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=
@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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.