Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 003f0f9

Browse files
committed
Merge pull request #20 from xeon22/develop
Updates for Stash 2.9.4
2 parents 9cc495d + 2b4317d commit 003f0f9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

attributes/default.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
when '2.9.0' then '5638c1af3008379d26fcb70dd392db5149a6b1b969ec5b9334647ba01c71c74b'
4646
when '2.9.1' then 'fe57c0a483ecd967307080b157c7af42260c59e48a919784b346eb496c283386'
4747
when '2.9.2' then 'd4c31a0523ab4df5d12a8dcd24778cfd9db343f668bee1f4a0b18381d173088c'
48+
when '2.9.3' then '6d866a2081f0a69fdd29dc059836f1d3d1bb51453bc7cbc6c9518ebc3227a389'
49+
when '2.9.4' then '3425e39eb5dbffe24cf44558eaca38d0884b8d07602c3225c9215007ae13bef3'
4850
end
4951

5052
default['stash']['apache2']['access_log'] = ''

templates/default/setenv.sh.erb

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@
99
#
1010
STASH_HOME="<%= node['stash']['home_path'] %>"
1111

12+
#
13+
# Native libraries, such as the Tomcat native library, can be placed here for use by Stash. Alternatively, native
14+
# libraries can also be placed in $STASH_HOME/lib/native, where they will also be included in the library path used
15+
# by the JVM. By placing libraries in $STASH_HOME, they can be preserved across Stash upgrades.
16+
#
17+
# NOTE: You must choose the library architecture, x86 or x64, based on the JVM you'll be running, _not_ based on the OS.
18+
#
19+
JVM_LIBRARY_PATH="$CATALINA_HOME/lib/native:$STASH_HOME/lib/native"
20+
1221
#
1322
# Occasionally Atlassian Support may recommend that you set some specific JVM arguments. You can use this variable
1423
# below to do that.
15-
#
24+
1625
JVM_SUPPORT_RECOMMENDED_ARGS="<%= node['stash']['jvm']['support_args'] %>"
1726

1827
#
@@ -30,7 +39,7 @@ JVM_FILE_ENCODING="UTF-8"
3039
#
3140
# The following are the required arguments needed for Atlassian Stash.
3241
#
33-
JVM_REQUIRED_ARGS="-Djava.awt.headless=true -Dfile.encoding=${JVM_FILE_ENCODING} -Datlassian.standalone=STASH -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.apache.catalina.connector.Response.ENFORCE_ENCODING_IN_GET_WRITER=false"
42+
JVM_REQUIRED_ARGS="-Djava.awt.headless=true -Dfile.encoding=${JVM_FILE_ENCODING} -Datlassian.standalone=STASH -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.apache.catalina.connector.Response.ENFORCE_ENCODING_IN_GET_WRITER=false"
3443

3544
#
3645
# Additional JVM arguments
@@ -70,6 +79,11 @@ fi
7079

7180
STASH_HOME_MINUSD=-Dstash.home=$STASH_HOME
7281

82+
if [ "$JVM_LIBRARY_PATH" != "" ]; then
83+
JVM_LIBRARY_PATH_MINUSD=-Djava.library.path=$JVM_LIBRARY_PATH
84+
JVM_REQUIRED_ARGS="${JVM_REQUIRED_ARGS} ${JVM_LIBRARY_PATH_MINUSD}"
85+
fi
86+
7387
JAVA_OPTS="-Xms${JVM_MINIMUM_MEMORY} -Xmx${JVM_MAXIMUM_MEMORY} ${JAVA_OPTS} ${JVM_REQUIRED_ARGS} ${JVM_SUPPORT_RECOMMENDED_ARGS} ${STASH_HOME_MINUSD}"
7488

7589
# PermGen size needs to be increased if encountering OutOfMemoryError: PermGen problems. Specifying PermGen size is

0 commit comments

Comments
 (0)