Skip to content

Commit d1284fd

Browse files
committed
Allow mixed-case mirth.properties keys to be specified via env
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent 67fbcb9 commit d1284fd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

server/basedir-includes/configure-from-env

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ while read -r keyvalue; do
114114
ACTUAL_KEY="${ACTUAL_KEY//_/.}"
115115

116116
# lower case
117-
# example: database.max-connections
118-
ACTUAL_KEY="${ACTUAL_KEY,,}"
117+
# example: database.max-connections (but not _MP_user_pref_default_showTags)
118+
if [[ ! ${ACTUAL_KEY} =~ [a-z] ]]; then
119+
ACTUAL_KEY="${ACTUAL_KEY,,}"
120+
fi
119121

120122
# if key does not exist in mirth.properties append it at bottom
121123
LINE_COUNT=`grep "^${ACTUAL_KEY}" "$APP_DIR/conf/mirth.properties" | wc -l`

0 commit comments

Comments
 (0)