Skip to content

Commit 7e3edf1

Browse files
authored
fix(glowroot) fixes the TMP directory for glowroot so that it always exists (dotCMS#32184)
Sets glowroot tmp dir to /tmp ref: dotCMS#32183
1 parent a5e2f64 commit 7e3edf1

File tree

1 file changed

+2
-2
lines changed
  • dotCMS/src/main/resources/container/tomcat9/bin

1 file changed

+2
-2
lines changed

dotCMS/src/main/resources/container/tomcat9/bin/setenv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ add_glowroot_agent() {
176176
fi
177177
CATALINA_OPTS="$CATALINA_OPTS -Dglowroot.conf.dir=$GLOWROOT_CONF_DIR"
178178
# We may want to modify these defaults
179-
CATALINA_OPTS="$CATALINA_OPTS -Dglowroot.tmp.dir=${GLOWROOT_TMP_DIR:=$CATALINA_TMPDIR}"
179+
CATALINA_OPTS="$CATALINA_OPTS -Dglowroot.tmp.dir=${GLOWROOT_TMP_DIR:=/tmp}"
180180
# Only used if when not using a collector
181181
CATALINA_OPTS="$CATALINA_OPTS -Dglowroot.data.dir=${GLOWROOT_DATA_DIR:=$GLOWROOT_SHARED_FOLDER/data}"
182182

@@ -193,4 +193,4 @@ add_glowroot_agent() {
193193
# Run the function to add Glowroot agent settings to CATALINA_OPTS if enabled
194194
add_glowroot_agent
195195
export CATALINA_OPTS
196-
export CLASSPATH
196+
export CLASSPATH

0 commit comments

Comments
 (0)